@@ -1489,9 +1489,10 @@ static void singleurl(struct option *o,
1489
1489
wlen = strlen (w );
1490
1490
iinfo -> ptr = NULL ;
1491
1491
}
1492
- curl_msnprintf (iterbuf , sizeof (iterbuf ), "%.*s%s=%.*s" , (int )plen , part ,
1493
- urlencode ? "" : ":" ,
1494
- (int )wlen , w );
1492
+ (void )curl_msnprintf (iterbuf , sizeof (iterbuf ),
1493
+ "%.*s%s=%.*s" , (int )plen , part ,
1494
+ urlencode ? "" : ":" ,
1495
+ (int )wlen , w );
1495
1496
setone (uh , iterbuf , o );
1496
1497
if (iter -> next ) {
1497
1498
struct iterinfo info ;
@@ -1510,7 +1511,8 @@ static void singleurl(struct option *o,
1510
1511
char * npath ;
1511
1512
size_t olen ;
1512
1513
/* extract the current path */
1513
- curl_url_get (uh , CURLUPART_PATH , & opath , 0 );
1514
+ if (curl_url_get (uh , CURLUPART_PATH , & opath , 0 ))
1515
+ errorf (o , ERROR_ITER , "out of memory" );
1514
1516
1515
1517
/* does the existing path end with a slash, then don't
1516
1518
add one in between */
@@ -1522,7 +1524,8 @@ static void singleurl(struct option *o,
1522
1524
apath );
1523
1525
if (npath ) {
1524
1526
/* set the new path */
1525
- curl_url_set (uh , CURLUPART_PATH , npath , 0 );
1527
+ if (curl_url_set (uh , CURLUPART_PATH , npath , 0 ))
1528
+ errorf (o , ERROR_ITER , "out of memory" );
1526
1529
}
1527
1530
curl_free (npath );
1528
1531
curl_free (opath );
0 commit comments