mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-06 23:43:20 +02:00
copy.c: Init pointers to NULL before start checking them
If copy to stdout dstds will be undefined.
This commit is contained in:
+1
-1
@@ -580,7 +580,7 @@ static int resolve_dst(const char **dst, const struct infix_ds **ds, char **path
|
||||
static int copy(const char *src, const char *dst)
|
||||
{
|
||||
char *srcpath = NULL, *dstpath = NULL;
|
||||
const struct infix_ds *srcds, *dstds;
|
||||
const struct infix_ds *srcds = NULL, *dstds = NULL;
|
||||
bool rmsrc = false;
|
||||
mode_t oldmask;
|
||||
int err = 1;
|
||||
|
||||
Reference in New Issue
Block a user