Fixed use before initialization
This commit is contained in:
parent
b3ec4fa2be
commit
25d1644d43
2
src/cp.c
2
src/cp.c
|
@ -178,7 +178,7 @@ static int _single_recurse(Prefs * prefs, char const * src, char const * dst)
|
|||
ssrc = p;
|
||||
if((p = realloc(sdst, dstlen + strlen(de->d_name) + 2)) == NULL)
|
||||
{
|
||||
ret |= _cp_error(ssrc, 1);
|
||||
ret |= _cp_error(src, 1);
|
||||
continue;
|
||||
}
|
||||
sdst = p;
|
||||
|
|
Loading…
Reference in New Issue
Block a user