diff options
Diffstat (limited to 'src/common/tlm-utils.c')
-rwxr-xr-x | src/common/tlm-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/tlm-utils.c b/src/common/tlm-utils.c index 22c3ea9..cc04208 100755 --- a/src/common/tlm-utils.c +++ b/src/common/tlm-utils.c @@ -61,7 +61,7 @@ g_clear_string (gchar **str) gchar * tlm_user_get_name (uid_t user_id) { - struct passwd *pwent; + struct passwd *pwent = NULL; struct passwd buf_pwent; gchar *buf = NULL, *tmp = NULL, *pw_name = NULL; gsize size = sysconf(_SC_GETPW_R_SIZE_MAX); @@ -162,7 +162,7 @@ tlm_user_get_gid (const gchar *username) gchar * tlm_user_get_home_dir (const gchar *username) { - struct passwd *pwent; + struct passwd *pwent = NULL; struct passwd buf_pwent; gchar *buf = NULL, *tmp = NULL, *pw_dir = NULL; gsize size = sysconf(_SC_GETPW_R_SIZE_MAX); @@ -197,7 +197,7 @@ tlm_user_get_home_dir (const gchar *username) gchar * tlm_user_get_shell (const gchar *username) { - struct passwd *pwent; + struct passwd *pwent = NULL; struct passwd buf_pwent; gchar *buf = NULL, *tmp = NULL, *pw_shell = NULL; gsize size = sysconf(_SC_GETPW_R_SIZE_MAX); |