Commit Diff


commit - 1dd3b054dd3d8778debf24bb32cc61ff06e3ee42
commit + d51201063dfd08d55382bc1848cee7f4662f504b
blob - fec49729d25878f58d236fbfd1173a0dc341989d
blob + a07182ead118ab9b1427cb615811de32cd0d896d
--- ctl.c
+++ ctl.c
@@ -316,6 +316,7 @@ show_load(struct parse_result *res, struct imsg *imsg,
 		if (!strncmp(file, "./", 2))
 			file += 2;
 
+		memset(path, 0, sizeof(path));
 		if (*file == '/')
 			n = strlcpy(path, file, sizeof(path));
 		else