summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ndiscvt
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2008-04-15 04:44:32 +0000
committerthompsa <thompsa@FreeBSD.org>2008-04-15 04:44:32 +0000
commitf6323acd497cd1d4ce7101c195f5995cb83bc5b1 (patch)
tree7d0820b1702cef7e24fcddf70b5a94042f1d8d0b /usr.sbin/ndiscvt
parentb5d5b802b92d4b1c41d22000ef8ec058c320512d (diff)
downloadFreeBSD-src-f6323acd497cd1d4ce7101c195f5995cb83bc5b1.zip
FreeBSD-src-f6323acd497cd1d4ce7101c195f5995cb83bc5b1.tar.gz
If the .inf file did not have a Default entry for the registry key then write
out a blank value and close the brackets on the ndis_regvals array.
Diffstat (limited to 'usr.sbin/ndiscvt')
-rw-r--r--usr.sbin/ndiscvt/inf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ndiscvt/inf.c b/usr.sbin/ndiscvt/inf.c
index c3d965c..ef1892f 100644
--- a/usr.sbin/ndiscvt/inf.c
+++ b/usr.sbin/ndiscvt/inf.c
@@ -539,8 +539,10 @@ dump_defaultinfo(const struct section *s, const struct reg *r, int devidx)
continue;
fprintf(ofp, "\n\t{ \"%s\" }, %d },", reg->value == NULL ? "" :
stringcvt(reg->value), devidx);
- break;
+ return;
}
+ /* Default registry entry missing */
+ fprintf(ofp, "\n\t{ \"\" }, %d },", devidx);
return;
}
OpenPOWER on IntegriCloud