fix: potential null pointer deref in cmd_ac_complete (upstream 16080ab9)

This commit is contained in:
2026-03-31 19:08:25 +03:00
parent fbcb49f6d0
commit 7f7e8307f4

View File

@@ -1684,6 +1684,9 @@ cmd_ac_complete_filepath(const char* const input, char* const startstr, gboolean
}
inpcp = strdup(inpcp);
if (!inpcp) {
return NULL;
}
// strip quotes
if (*inpcp == '"') {