Module Name:    src
Committed By:   mrg
Date:           Sun Sep  6 05:31:46 UTC 2020

Modified Files:
        src/sbin/raidctl: rf_configure.c

Log Message:
avoid trying to printf() a NULL as %s.  fixes likely bug.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/sbin/raidctl/rf_configure.c

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

Modified files:

Index: src/sbin/raidctl/rf_configure.c
diff -u src/sbin/raidctl/rf_configure.c:1.33 src/sbin/raidctl/rf_configure.c:1.34
--- src/sbin/raidctl/rf_configure.c:1.33	Thu Jan 18 00:32:49 2018
+++ src/sbin/raidctl/rf_configure.c	Sun Sep  6 05:31:46 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: rf_configure.c,v 1.33 2018/01/18 00:32:49 mrg Exp $ */
+/*	$NetBSD: rf_configure.c,v 1.34 2020/09/06 05:31:46 mrg Exp $ */
 
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
@@ -49,7 +49,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: rf_configure.c,v 1.33 2018/01/18 00:32:49 mrg Exp $");
+__RCSID("$NetBSD: rf_configure.c,v 1.34 2020/09/06 05:31:46 mrg Exp $");
 #endif
 
 
@@ -286,7 +286,7 @@ rf_MakeConfig(char *configname, RF_Confi
 		b = getfsspecname(b1, sizeof(b1), buf);
 		if (b == NULL) {
 			warnx("Config file error: warning: unable to get "
-			    "device file for spare disk %d: %s", c, b);
+			    "device file for spare disk %d: %s", c, buf);
 			b = buf;
 		}
 

Reply via email to