cleanup: Fix potential null pointer dereference

This commit is contained in:
Michael Vetter
2026-02-27 19:45:57 +01:00
parent f74501e97e
commit 16080ab985

View File

@@ -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] == '"') {