fix segv on desklock unlock (valgrind caught it) :)

SVN revision: 23823
This commit is contained in:
Carsten Haitzler 2006-07-10 19:33:00 +00:00
parent 3f02b70103
commit 3c612bf4e8
2 changed files with 3 additions and 0 deletions

View File

@ -585,6 +585,7 @@ _desklock_auth(const char *passwd)
E_Desklock_Auth da;
char *current_user;
current_user = _desklock_auth_get_current_user();
strncpy(da.user, current_user, PATH_MAX);
strncpy(da.passwd, passwd, PATH_MAX);
da.pam.handle = NULL;

View File

@ -329,7 +329,9 @@ _e_prefix_share_hunt(void)
return 1;
}
/* fail. everything failed */
#ifdef PREFIX_CACHE_FILE
free(home);
#endif
return 0;
}