Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec appease gcc -Wuninitialized
details: https://anonhg.NetBSD.org/src/rev/9777eaa3ff50
branches: trunk
changeset: 581427:9777eaa3ff50
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Jun 01 15:51:23 2005 +0000
description:
appease gcc -Wuninitialized
diffstat:
libexec/identd/identd.c | 5 +++--
libexec/makewhatis/makewhatis.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (52 lines):
diff -r f190c31765a6 -r 9777eaa3ff50 libexec/identd/identd.c
--- a/libexec/identd/identd.c Wed Jun 01 15:50:00 2005 +0000
+++ b/libexec/identd/identd.c Wed Jun 01 15:51:23 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: identd.c,v 1.27 2005/05/18 00:31:32 peter Exp $ */
+/* $NetBSD: identd.c,v 1.28 2005/06/01 15:51:23 lukem Exp $ */
/*
* identd.c - TCP/IP Ident protocol server.
@@ -39,7 +39,7 @@
#include "identd.h"
-__RCSID("$NetBSD: identd.c,v 1.27 2005/05/18 00:31:32 peter Exp $");
+__RCSID("$NetBSD: identd.c,v 1.28 2005/06/01 15:51:23 lukem Exp $");
#define OPSYS_NAME "UNIX"
#define IDENT_SERVICE "auth"
@@ -99,6 +99,7 @@
gid_t gid;
uid_t uid;
+ socks = NULL;
IPv4or6 = AF_UNSPEC;
osname = OPSYS_NAME;
portno = IDENT_SERVICE;
diff -r f190c31765a6 -r 9777eaa3ff50 libexec/makewhatis/makewhatis.c
--- a/libexec/makewhatis/makewhatis.c Wed Jun 01 15:50:00 2005 +0000
+++ b/libexec/makewhatis/makewhatis.c Wed Jun 01 15:51:23 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: makewhatis.c,v 1.35 2005/04/04 08:13:52 wiz Exp $ */
+/* $NetBSD: makewhatis.c,v 1.36 2005/06/01 15:53:31 lukem Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
#if !defined(lint)
__COPYRIGHT("@(#) Copyright (c) 1999 The NetBSD Foundation, Inc.\n\
All rights reserved.\n");
-__RCSID("$NetBSD: makewhatis.c,v 1.35 2005/04/04 08:13:52 wiz Exp $");
+__RCSID("$NetBSD: makewhatis.c,v 1.36 2005/06/01 15:53:31 lukem Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -499,6 +499,7 @@
size_t llen, slen, dlen;
char *result, *ptr;
+ ptr = NULL;
if (section == NULL) {
if (dowarn)
warnx("%s: No section provided for `%s'", file, line);
Home |
Main Index |
Thread Index |
Old Index