Allow out and escout to be NULL in crunch_str()

This commit is contained in:
Rob Landley 2016-10-20 15:29:10 -05:00
parent 3214c87ccf
commit 817f059d48

View File

@ -106,7 +106,8 @@ int crunch_str(char **str, int width, FILE *out, char *escmore,
}
col = width-columns;
if (col<1) break;
col = escout(out, col, wc);
if (escout) col = escout(out, col, wc);
else if (out) fwrite(end, bytes, 1, out);
}
*str = end;