We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea2495e commit bf5d439Copy full SHA for bf5d439
src/completer.c
@@ -12,7 +12,7 @@
12
#include "builtins.h"
13
14
static void ls_appended(const char* tok, const char* app) {
15
- char cmd[PATH_MAX + 3];
+ char cmd[PATH_MAX + 3] = {0};
16
17
if ((tok != NULL && strlen(tok) + 1 > PATH_MAX) ||
18
(app != NULL && strlen(app) + (tok != NULL ? strlen(tok) : 0) + 1 > PATH_MAX)) {
0 commit comments