Fixed error code when a memory allocation error occured
This commit is contained in:
parent
e36447da8f
commit
18b631ed12
2
src/cp.c
2
src/cp.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user