Fixed error code when a memory allocation error occured

This commit is contained in:
Pierre Pronchery 2007-03-17 18:04:16 +00:00
parent e36447da8f
commit 18b631ed12

View File

@ -196,7 +196,7 @@ static int _cp_multiple(Prefs * prefs, int filec, char * const filev[])
len = strlen(filev[i]) + strlen(dst) + 2;
if((p = realloc(sdst, len * sizeof(char))) == NULL)
{
_cp_error(filev[filec - 1], 0);
ret |= _cp_error(filev[filec - 1], 1);
continue;
}
sdst = p;