mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
eliminated double null check
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user