Mercurial > emacs
changeset 109119:00accbd76dbd
lib-src/ebrowse.c (match_qualified_namespace_alias): Check for null pointer.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Sat, 03 Jul 2010 12:46:27 +0200 |
parents | e723dd7c9121 |
children | 9983eb21a9c9 810852b2385b |
files | lib-src/ChangeLog lib-src/ebrowse.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/ChangeLog Sat Jul 03 10:49:55 2010 +0300 +++ b/lib-src/ChangeLog Sat Jul 03 12:46:27 2010 +0200 @@ -1,3 +1,7 @@ +2010-07-03 Juanma Barranquero <lekktu@gmail.com> + + * ebrowse.c (match_qualified_namespace_alias): Check for null pointer. + 2010-07-03 Juanma Barranquero <lekktu@gmail.com> Fix prototype warnings.
--- a/lib-src/ebrowse.c Sat Jul 03 10:49:55 2010 +0300 +++ b/lib-src/ebrowse.c Sat Jul 03 12:46:27 2010 +0200 @@ -2385,7 +2385,7 @@ { case IDENT: tmp = (struct link *) xmalloc (sizeof *cur); - tmp->sym = find_namespace (yytext, cur->sym); + tmp->sym = find_namespace (yytext, cur ? cur->sym : NULL); tmp->next = NULL; if (head) {