eliminated double null check

This commit is contained in:
Nikos Mavrogiannopoulos
2015-12-01 11:46:30 +01:00
parent a0ca61c9a8
commit 8990ee7448

View File

@@ -62,10 +62,8 @@ unsigned expand_brackets_string(void *pool, const char *str, subcfg_val_st out[M
do {
p2 = strchr(p, '=');
if (p2 == NULL) {
if (p2 == NULL) {
fprintf(stderr, "error parsing %s\n", str);
exit(1);
}
fprintf(stderr, "error parsing %s\n", str);
exit(1);
}
len = p2 - p;