mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
If the function was called more than once with different usernames it would always return the path for the user on the first call, which is not what would be expected. Furthermore, if the function succeeds it allocated memory to save this path but it was never freed. The good thing is that the use case for this function is so rare that it is improbable it was ever called, which explains why it was never seen. The new code always behaves as expected, and does not allocate memory anymore to avoid wasting time and memory for such small things, which is acceptable because this function is local. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
9.7 KiB
9.7 KiB