mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 11:26:21 +00:00
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);
|
||||
if (!inpcp) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// strip quotes
|
||||
if (inpcp[0] == '"') {
|
||||
|
||||
Reference in New Issue
Block a user