Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/dbe63210cfc3405f434b2e10697f33da37e7c19d
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/dbe63210cfc3405f434b2e10697f33da37e7c19d
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/dbe63210cfc3405f434b2e10697f33da37e7c19d

The branch, master has been updated
       via  dbe63210cfc3405f434b2e10697f33da37e7c19d (commit)
      from  fe429e8d2d76c34b0432acb1f579d62ecfe374de (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=dbe63210cfc3405f434b2e10697f33da37e7c19d
commit dbe63210cfc3405f434b2e10697f33da37e7c19d
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>

    fix use of uninitialised warning on older gcc

diff --git a/content/handlers/text/textplain.c 
b/content/handlers/text/textplain.c
index c728469..b5ad0ae 100644
--- a/content/handlers/text/textplain.c
+++ b/content/handlers/text/textplain.c
@@ -1592,10 +1592,12 @@ textplain_textselection_copy(struct content *c,
 {
        const char *text;
        size_t length;
-       bool res;
+       bool res = false;
 
        text = textplain_get_raw_data(c, start_idx, end_idx, &length);
-       res = selection_string_append(text, length, false, NULL, selstr);
+       if (text != NULL) {
+               res = selection_string_append(text, length, false, NULL, 
selstr);
+       }
        if (res == false) {
                return NSERROR_NOMEM;
        }


-----------------------------------------------------------------------

Summary of changes:
 content/handlers/text/textplain.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/content/handlers/text/textplain.c 
b/content/handlers/text/textplain.c
index c728469..b5ad0ae 100644
--- a/content/handlers/text/textplain.c
+++ b/content/handlers/text/textplain.c
@@ -1592,10 +1592,12 @@ textplain_textselection_copy(struct content *c,
 {
        const char *text;
        size_t length;
-       bool res;
+       bool res = false;
 
        text = textplain_get_raw_data(c, start_idx, end_idx, &length);
-       res = selection_string_append(text, length, false, NULL, selstr);
+       if (text != NULL) {
+               res = selection_string_append(text, length, false, NULL, 
selstr);
+       }
        if (res == false) {
                return NSERROR_NOMEM;
        }


-- 
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to