copy.c: Init pointers to NULL before start checking them

If copy to stdout dstds will be undefined.
This commit is contained in:
Mattias Walström
2026-01-24 15:24:01 +01:00
parent 1f361f72a7
commit 0a778805a5
+1 -1
View File
@@ -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;