diff options
| author | Richard M. Stallman | 1996-07-29 04:21:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-07-29 04:21:23 +0000 |
| commit | e0e0205b0271c4de43123aaf338a94f4e771e232 (patch) | |
| tree | 36adb934f67da6a294cbfa8784246bcd7868d81e /src | |
| parent | 87a3fd191da333803fe18a7c34d784fd022989fd (diff) | |
| download | emacs-e0e0205b0271c4de43123aaf338a94f4e771e232.tar.gz emacs-e0e0205b0271c4de43123aaf338a94f4e771e232.zip | |
(lock_file_owner_name): Always initialize the_pw.
Diffstat (limited to 'src')
| -rw-r--r-- | src/filelock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/filelock.c b/src/filelock.c index 27b4be4ad35..5393867063c 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -166,6 +166,9 @@ lock_file_owner_name (lfname) | |||
| 166 | 166 | ||
| 167 | if (lstat (lfname, &s) == 0) | 167 | if (lstat (lfname, &s) == 0) |
| 168 | the_pw = getpwuid (s.st_uid); | 168 | the_pw = getpwuid (s.st_uid); |
| 169 | else | ||
| 170 | the_pw = 0; | ||
| 171 | |||
| 169 | return (the_pw == 0 ? Qnil : build_string (the_pw->pw_name)); | 172 | return (the_pw == 0 ? Qnil : build_string (the_pw->pw_name)); |
| 170 | } | 173 | } |
| 171 | 174 | ||