Module Name:    src
Committed By:   martin
Date:           Wed Mar  4 11:15:06 UTC 2020

Modified Files:
        src/usr.sbin/sysinst: main.c

Log Message:
PR 55045: strlcpy(NULL, ..., 0) considered harmfull in some implementations.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/usr.sbin/sysinst/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/main.c
diff -u src/usr.sbin/sysinst/main.c:1.22 src/usr.sbin/sysinst/main.c:1.23
--- src/usr.sbin/sysinst/main.c:1.22	Wed Feb 19 21:51:21 2020
+++ src/usr.sbin/sysinst/main.c	Wed Mar  4 11:15:06 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.22 2020/02/19 21:51:21 martin Exp $	*/
+/*	$NetBSD: main.c,v 1.23 2020/03/04 11:15:06 martin Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -144,6 +144,8 @@ init(void)
 	memset(pm_new, 0, sizeof *pm_new);
 
 	for (arg = fflagopts; arg->name != NULL; arg++) {
+		if (arg->var == NULL)
+			continue;
 		if (arg->var == cdrom_dev)
 			get_default_cdrom(arg->var, arg->size);
 		else

Reply via email to