cleanup: Fix potential null pointer dereference
This commit is contained in:
@@ -1669,6 +1669,9 @@ cmd_ac_complete_filepath(const char* const input, char* const startstr, gboolean
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto_gchar gchar* inpcp = g_strdup(inpcp_ptr);
|
auto_gchar gchar* inpcp = g_strdup(inpcp_ptr);
|
||||||
|
if (!inpcp) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// strip quotes
|
// strip quotes
|
||||||
if (inpcp[0] == '"') {
|
if (inpcp[0] == '"') {
|
||||||
|
|||||||
Reference in New Issue
Block a user