[prev in list] [next in list] [prev in thread] [next in thread] 

List:       elinks-cvs
Subject:    [ELinks] elinks (ECMASCRIPT) - jonas: If the callback returns NULL...
From:       cvs () pasky ! ji ! cz
Date:       2004-02-28 18:49:49
Message-ID: 20040228184949.19846.qmail () machine ! sinus ! cz
[Download RAW message or body]

This is an automated notification of a change to the ELinks CVS tree.

Author: jonas
Module: elinks
   Tag: ECMASCRIPT
  Date: Sat Feb 28 18:49:49 2004 GMT

---- Log message:

If the callback returns NULL pop the state immediately. This kind of error reporting \
should be used carefully.


---- Files affected:

elinks/src/document/dom:
   navigator.c (1.1.2.31 -> 1.1.2.32) 
    http://cvsweb.elinks.or.cz/cvsweb.cgi/elinks/src/document/dom/navigator.c.diff?r1=1.1.2.31&r2=1.1.2.32&f=u



---- Diffs:

 elinks/src/document/dom/navigator.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: elinks/src/document/dom/navigator.c
diff -u elinks/src/document/dom/navigator.c:1.1.2.31 \
                elinks/src/document/dom/navigator.c:1.1.2.32
--- elinks/src/document/dom/navigator.c:1.1.2.31	Sat Feb 28 19:47:51 2004
+++ elinks/src/document/dom/navigator.c	Sat Feb 28 19:49:44 2004
@@ -107,7 +107,8 @@
 		va_end(args);
 	}
 
-	navigator->depth++;
+	/* If the callback returned NULL pop the state immediately */
+	if (node) navigator->depth++;
 
 	return node;
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic