Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/ntp/dist/ntpd avoid a potential uninitialised v...



details:   https://anonhg.NetBSD.org/src/rev/c91583db7293
branches:  trunk
changeset: 766731:c91583db7293
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jul 01 02:18:37 2011 +0000

description:
avoid a potential uninitialised variable problem.

diffstat:

 external/bsd/ntp/dist/ntpd/refclock_oncore.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a42246eed9bc -r c91583db7293 external/bsd/ntp/dist/ntpd/refclock_oncore.c
--- a/external/bsd/ntp/dist/ntpd/refclock_oncore.c      Fri Jul 01 02:11:14 2011 +0000
+++ b/external/bsd/ntp/dist/ntpd/refclock_oncore.c      Fri Jul 01 02:18:37 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: refclock_oncore.c,v 1.3 2010/12/04 23:08:35 christos Exp $     */
+/*     $NetBSD: refclock_oncore.c,v 1.4 2011/07/01 02:18:37 mrg Exp $  */
 
 
 /*
@@ -2488,7 +2488,7 @@
 {
        int     chan, id, subframe, valid, page, i, j, tow;
        int     day_now, day_lsf;
-       const char *cp;
+       const char *cp = NULL /* XXX gcc */;
        char Msg[120];
        enum {
                WARN_NOT_YET,



Home | Main Index | Thread Index | Old Index