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);
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);
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);