Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/02f886c41166
branches:  netbsd-6-1
changeset: 776185:02f886c41166
user:      snj <snj%NetBSD.org@localhost>
date:      Wed Mar 08 00:39:06 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 2aede4ab3ab1 -r 02f886c41166 libexec/httpd/bozohttpd.c
--- a/libexec/httpd/bozohttpd.c Tue Mar 07 21:00:11 2017 +0000
+++ b/libexec/httpd/bozohttpd.c Wed Mar 08 00:39:06 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bozohttpd.c,v 1.30.8.3 2017/03/07 07:21:53 snj Exp $   */
+/*     $NetBSD: bozohttpd.c,v 1.30.8.4 2017/03/08 00:39:06 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