Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6-0]: src/libexec/httpd Put back a netbsd-6* workaround accidenta...



details:   https://anonhg.NetBSD.org/src/rev/d5a41fd19a91
branches:  netbsd-6-0
changeset: 775185:d5a41fd19a91
user:      snj <snj%NetBSD.org@localhost>
date:      Wed Mar 08 00:39:44 2017 +0000

description:
Put back a netbsd-6* workaround accidentally removed in ticket 1437:
Explicitly initialize uid to avoid a gcc warning.

diffstat:

 libexec/httpd/bozohttpd.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e8e5d254874b -r d5a41fd19a91 libexec/httpd/bozohttpd.c
--- a/libexec/httpd/bozohttpd.c Tue Mar 07 20:58:48 2017 +0000
+++ b/libexec/httpd/bozohttpd.c Wed Mar 08 00:39:44 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bozohttpd.c,v 1.30.6.3 2017/03/07 07:16:08 snj Exp $   */
+/*     $NetBSD: bozohttpd.c,v 1.30.6.4 2017/03/08 00:39:44 snj Exp $   */
 
 /*     $eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $      */
 
@@ -2243,7 +2243,7 @@
        struct passwd    *pw;
        extern char     **environ;
        static char      *cleanenv[1] = { NULL };
-       uid_t             uid;
+       uid_t             uid = 0;
        int               uidset = 0;
        char             *chrootdir;
        char             *username;



Home | Main Index | Thread Index | Old Index