projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af54fbb
)
getparameter: add error check
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 20 Dec 2010 21:21:06 +0000
(22:21 +0100)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 20 Dec 2010 21:22:02 +0000
(22:22 +0100)
if add2list() returns an error, bail out!
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
a38ad62
..
7e2e34e
100644
(file)
--- 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;