From: Daniel Stenberg Date: Mon, 20 Dec 2010 21:21:06 +0000 (+0100) Subject: getparameter: add error check X-Git-Tag: upstream/7.37.1~4478 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9acac91960c2fc7157c1fc1060947f0ed029cd10;p=platform%2Fupstream%2Fcurl.git getparameter: add error check if add2list() returns an error, bail out! --- diff --git a/src/main.c b/src/main.c index a38ad62..7e2e34e 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;