Skip to content

Commit 9d3f559

Browse files
committed
bin/xbps-create: fix uninitialized return value
1 parent 4c679ee commit 9d3f559

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/xbps-create/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,8 @@ walk_dir(const char *path,
576576
char tmp_path[PATH_MAX] = "";
577577
struct stat sb;
578578
struct dirent **list;
579-
int rv, n;
579+
int rv = 0;
580+
int n;
580581

581582
n = scandir(path, &list, NULL, alphasort);
582583
if (n == -1)

0 commit comments

Comments
 (0)