Commit 70b28a70 authored by Christian Hergert's avatar Christian Hergert

web-extension: fix NULL or empty string check

We need to compare against the character, not the pointer which
is done immediately to the left of this comparison.
parent 0e478618
......@@ -1375,7 +1375,7 @@ handle_method_call (GDBusConnection *connection,
if (!web_page)
if (base_uri == NULL || base_uri == '\0') {
if (base_uri == NULL || *base_uri == '\0') {
g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS,
"Base URI cannot be NULL or empty");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment