[epiphany/mcatanzaro/reader-handler-followup] reader-handler: remove incorrect check for NUL
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/reader-handler-followup] reader-handler: remove incorrect check for NUL
- Date: Sat, 11 Jul 2020 12:46:24 +0000 (UTC)
commit 77ddcfa6e83477f2ad9fa66a957e1273c974a7ab
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Jul 11 07:45:38 2020 -0500
reader-handler: remove incorrect check for NUL
The resource data is not a string and can contain embedded NULs,
including in the first position.
embed/ephy-reader-handler.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/embed/ephy-reader-handler.c b/embed/ephy-reader-handler.c
index 79b4c4710..c63a345b0 100644
--- a/embed/ephy-reader-handler.c
+++ b/embed/ephy-reader-handler.c
@@ -262,7 +262,7 @@ web_resource_data_cb (WebKitWebResource *resource,
gsize length;
data = webkit_web_resource_get_data_finish (resource, result, &length, &error);
- if (!data || !*data || length == 0) {
+ if (!data || length == 0) {
g_clear_object (&request->web_view);
ephy_reader_request_begin_get_source_from_uri (request, request->uri);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]