diff options
| author | Juanma Barranquero | 2010-07-03 12:46:27 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-07-03 12:46:27 +0200 |
| commit | 35d99b72205541bd4a41e2f98410607f620470a2 (patch) | |
| tree | f28e45deb003c2c1abf7338cde037b2dce2536ab /lib-src | |
| parent | ae492bec164e0288fbc5ebdcbefc1d6441d077c5 (diff) | |
| download | emacs-35d99b72205541bd4a41e2f98410607f620470a2.tar.gz emacs-35d99b72205541bd4a41e2f98410607f620470a2.zip | |
lib-src/ebrowse.c (match_qualified_namespace_alias): Check for null pointer.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 4 | ||||
| -rw-r--r-- | lib-src/ebrowse.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index e8bb82f749c..939f3f219ec 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2010-07-03 Juanma Barranquero <lekktu@gmail.com> | 1 | 2010-07-03 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 2 | ||
| 3 | * ebrowse.c (match_qualified_namespace_alias): Check for null pointer. | ||
| 4 | |||
| 5 | 2010-07-03 Juanma Barranquero <lekktu@gmail.com> | ||
| 6 | |||
| 3 | Fix prototype warnings. | 7 | Fix prototype warnings. |
| 4 | 8 | ||
| 5 | * ebrowse.c (match_qualified_namespace_alias): | 9 | * ebrowse.c (match_qualified_namespace_alias): |
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index bb3456f84e8..37b48a3349a 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c | |||
| @@ -2385,7 +2385,7 @@ match_qualified_namespace_alias (void) | |||
| 2385 | { | 2385 | { |
| 2386 | case IDENT: | 2386 | case IDENT: |
| 2387 | tmp = (struct link *) xmalloc (sizeof *cur); | 2387 | tmp = (struct link *) xmalloc (sizeof *cur); |
| 2388 | tmp->sym = find_namespace (yytext, cur->sym); | 2388 | tmp->sym = find_namespace (yytext, cur ? cur->sym : NULL); |
| 2389 | tmp->next = NULL; | 2389 | tmp->next = NULL; |
| 2390 | if (head) | 2390 | if (head) |
| 2391 | { | 2391 | { |