Gitweb links:

...log 
http://git.netsurf-browser.org/libdom.git/shortlog/36937ce1ad1417b7ca08b565023dc345b168291d
...commit 
http://git.netsurf-browser.org/libdom.git/commit/36937ce1ad1417b7ca08b565023dc345b168291d
...tree 
http://git.netsurf-browser.org/libdom.git/tree/36937ce1ad1417b7ca08b565023dc345b168291d

The branch, master has been updated
       via  36937ce1ad1417b7ca08b565023dc345b168291d (commit)
      from  38c82c0d1e4474aff9b601fcf6ba9578396346b9 (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/libdom.git/commit/?id=36937ce1ad1417b7ca08b565023dc345b168291d
commit 36937ce1ad1417b7ca08b565023dc345b168291d
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>

    Node: Add a NULL guard to hopefully calm scan-build
    
    Signed-off-by: Daniel Silverstone <[email protected]>

diff --git a/src/core/node.c b/src/core/node.c
index 9ba277e..b471725 100644
--- a/src/core/node.c
+++ b/src/core/node.c
@@ -2218,7 +2218,7 @@ void _dom_node_replace(dom_node_internal *old,
        else
                old->parent->last_child = last;
 
-       for (n = first; n != last->next; n = n->next) {
+       for (n = first; n != NULL && n != last->next; n = n->next) {
                n->parent = old->parent;
        }
 


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

Summary of changes:
 src/core/node.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/node.c b/src/core/node.c
index 9ba277e..b471725 100644
--- a/src/core/node.c
+++ b/src/core/node.c
@@ -2218,7 +2218,7 @@ void _dom_node_replace(dom_node_internal *old,
        else
                old->parent->last_child = last;
 
-       for (n = first; n != last->next; n = n->next) {
+       for (n = first; n != NULL && n != last->next; n = n->next) {
                n->parent = old->parent;
        }
 


-- 
Document Object Model library

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to