From e0e0205b0271c4de43123aaf338a94f4e771e232 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 29 Jul 1996 04:21:23 +0000 Subject: [PATCH] (lock_file_owner_name): Always initialize the_pw. --- src/filelock.c | 3 +++ 1 file changed, 3 insertions(+) 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) if (lstat (lfname, &s) == 0) the_pw = getpwuid (s.st_uid); + else + the_pw = 0; + return (the_pw == 0 ? Qnil : build_string (the_pw->pw_name)); } -- 2.39.5