diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-12-20 22:21:06 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-12-20 22:22:02 +0100 |
commit | 9acac91960c2fc7157c1fc1060947f0ed029cd10 (patch) | |
tree | a1c24fc38638985a528ec8e7ea9c336256eb5650 | |
parent | af54fbbcb582a03d2033691bbc0835b2bd4f0b7f (diff) |
getparameter: add error check
if add2list() returns an error, bail out!
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index a38ad6217..7e2e34ece 100644 --- a/src/main.c +++ b/src/main.c @@ -2450,6 +2450,8 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ break; case 'F': /* --resolve */ err = add2list(&config->resolve, nextarg); + if(err) + return err; break; } break; |