Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/stand/bootblock/installboot Uninitialized var...



details:   https://anonhg.NetBSD.org/src/rev/e863d256b889
branches:  trunk
changeset: 821666:e863d256b889
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Feb 12 18:21:50 2017 +0000

description:
Uninitialized var, found by Mootja; not tested, but obvious enough.

diffstat:

 sys/arch/amiga/stand/bootblock/installboot/installboot.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 83b694ae6467 -r e863d256b889 sys/arch/amiga/stand/bootblock/installboot/installboot.c
--- a/sys/arch/amiga/stand/bootblock/installboot/installboot.c  Sun Feb 12 17:19:00 2017 +0000
+++ b/sys/arch/amiga/stand/bootblock/installboot/installboot.c  Sun Feb 12 18:21:50 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: installboot.c,v 1.5 2010/07/06 06:09:57 mrg Exp $      */
+/*     $NetBSD: installboot.c,v 1.6 2017/02/12 18:21:50 maxv Exp $     */
 
 #include <err.h>
 #include <fcntl.h>
@@ -17,7 +17,7 @@
 
 int main(int argc, char *argv[]){
 
-       char *line;
+       char *line = NULL;
        char *progname;
        char *bootnam, *devnam;
        char *dline;



Home | Main Index | Thread Index | Old Index