Skip to content

Commit bf5d439

Browse files
committed
Fix warning
1 parent ea2495e commit bf5d439

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/completer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "builtins.h"
1313

1414
static void ls_appended(const char* tok, const char* app) {
15-
char cmd[PATH_MAX + 3];
15+
char cmd[PATH_MAX + 3] = {0};
1616

1717
if ((tok != NULL && strlen(tok) + 1 > PATH_MAX) ||
1818
(app != NULL && strlen(app) + (tok != NULL ? strlen(tok) : 0) + 1 > PATH_MAX)) {

0 commit comments

Comments
 (0)