@@ -1748,13 +1748,13 @@ static void normalize_part(struct option *o, CURLU *uh, CURLUPart part)
1748
1748
/* First URL decode the component */
1749
1749
char * rawptr = curl_easy_unescape (NULL , ptr , (int )ptrlen , & olen );
1750
1750
if (!rawptr )
1751
- errorf (o , ERROR_ITER , "out of memory" );
1751
+ errorf (o , ERROR_MEM , "out of memory" );
1752
1752
1753
1753
/* Then URL encode it again */
1754
1754
uptr = curl_easy_escape (NULL , rawptr , olen );
1755
1755
curl_free (rawptr );
1756
1756
if (!uptr )
1757
- errorf (o , ERROR_ITER , "out of memory" );
1757
+ errorf (o , ERROR_MEM , "out of memory" );
1758
1758
1759
1759
if (strcmp (ptr , uptr ))
1760
1760
/* changed, store the updated one */
@@ -1882,7 +1882,7 @@ static void singleurl(struct option *o,
1882
1882
char * cpath ;
1883
1883
bool path_is_modified = false;
1884
1884
if (curl_url_get (uh , CURLUPART_PATH , & opath , 0 ))
1885
- errorf (o , ERROR_ITER , "out of memory" );
1885
+ errorf (o , ERROR_MEM , "out of memory" );
1886
1886
1887
1887
/* append path segments */
1888
1888
for (p = o -> append_path ; p ; p = p -> next ) {
@@ -1917,7 +1917,7 @@ static void singleurl(struct option *o,
1917
1917
if (path_is_modified ) {
1918
1918
/* set the new path */
1919
1919
if (curl_url_set (uh , CURLUPART_PATH , opath , 0 ))
1920
- errorf (o , ERROR_ITER , "out of memory" );
1920
+ errorf (o , ERROR_MEM , "out of memory" );
1921
1921
}
1922
1922
curl_free (opath );
1923
1923
0 commit comments