fix: potential null pointer deref in cmd_ac_complete (upstream 16080ab9)
This commit is contained in:
@@ -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 == '"') {
|
||||
|
||||
Reference in New Issue
Block a user