projects
/
sxemacs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59d5066
)
COVERITY: Forward NULL: CID:40
author
Nelson Ferreira
<nelson.ferreira@ieee.org>
Thu, 12 Jan 2012 03:46:37 +0000
(22:46 -0500)
committer
Nelson Ferreira
<nelson.ferreira@ieee.org>
Thu, 12 Jan 2012 03:46:37 +0000
(22:46 -0500)
* lib-src/ootags.c (analyse_regex): Return if regex_arg is NULL
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
lib-src/ootags.c
patch
|
blob
|
history
diff --git
a/lib-src/ootags.c
b/lib-src/ootags.c
index
c2b6151
..
6433c92
100644
(file)
--- a/
lib-src/ootags.c
+++ b/
lib-src/ootags.c
@@
-4599,9
+4599,10
@@
char *name;
void analyse_regex(regex_arg)
char *regex_arg;
{
- if (regex_arg == NULL)
+ if (regex_arg == NULL)
{
free_patterns(); /* --no-regex: remove existing regexps */
-
+ return;
+ }
/* A real --regexp option or a line in a regexp file. */
switch (regex_arg[0]) {
/* Comments in regexp file or null arg to --regex. */