diff options
author | Christian Hergert <chergert@redhat.com> | 2017-04-06 16:22:00 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2017-04-06 16:22:00 -0700 |
commit | 70b28a70db0aea820f8347f2b7c521f42c304176 (patch) | |
tree | 5ad97bb17fd9116ac9d6388d4e420132c673bdbd | |
parent | 0e478618fa89fc5e13f781f49c5f74620e51ddcd (diff) | |
download | epiphany-70b28a70db0aea820f8347f2b7c521f42c304176.tar.gz |
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.
-rw-r--r-- | embed/web-extension/ephy-web-extension.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c index b746e0455..913308156 100644 --- a/embed/web-extension/ephy-web-extension.c +++ b/embed/web-extension/ephy-web-extension.c @@ -1375,7 +1375,7 @@ handle_method_call (GDBusConnection *connection, if (!web_page) return; - 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"); return; |