Fix "wuffs gen" null pointer dereference

This commit is contained in:
Nigel Tao committed 2019-10-22 08:31:53 +11:00
1 parent 7136dcdfd4
commit 3b466277dc
1 file changed
+3 -1
+3 -1
View File
@@ -84,12 +84,14 @@ func doGenGenlib(wuffsRoot string, args []string, genlib bool) error {
h := genHelper{
wuffsRoot: wuffsRoot,
langs: langs,
ccompilers: *ccompilersFlag,
cformatter: *cformatterFlag,
genlinenum: *genlinenumFlag,
skipgen: genlib && *skipgenFlag,
skipgendeps: *skipgendepsFlag,
}
if genlib {
h.ccompilers = *ccompilersFlag
}
for _, arg := range args {
recursive := strings.HasSuffix(arg, "/...")