Skip to content

Commit 1af1a4a

Browse files
committed
bin/xbps-create: initialize pointer
`scandir(3)` doesn't require it, but coverity static analysis complains.
1 parent a8d817c commit 1af1a4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/xbps-create/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ walk_dir(const char *path,
575575
{
576576
char tmp_path[PATH_MAX] = "";
577577
struct stat sb;
578-
struct dirent **list;
578+
struct dirent **list = NULL;
579579
int rv = 0;
580580
int n;
581581

0 commit comments

Comments
 (0)