diff options
author | Maximilian Szengel <gnunet@maxsz.de> | 2012-07-05 09:46:28 +0000 |
---|---|---|
committer | Maximilian Szengel <gnunet@maxsz.de> | 2012-07-05 09:46:28 +0000 |
commit | 4d54bcf5b6c10ac6b0d7e7b7d2516a626959efba (patch) | |
tree | caa90bfcf67eaefe1933f8c7afe6a27c38aa4d37 /src/regex/regex_graph.c | |
parent | f3850a70d64e75fbe4a5988329c0fed2a16b199b (diff) | |
download | gnunet-4d54bcf5b6c10ac6b0d7e7b7d2516a626959efba.tar.gz gnunet-4d54bcf5b6c10ac6b0d7e7b7d2516a626959efba.zip |
regex: fixed static analyzer warnings
Diffstat (limited to 'src/regex/regex_graph.c')
-rw-r--r-- | src/regex/regex_graph.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/regex/regex_graph.c b/src/regex/regex_graph.c index 3230ea702..eb4d61b4e 100644 --- a/src/regex/regex_graph.c +++ b/src/regex/regex_graph.c | |||
@@ -55,7 +55,11 @@ scc_tarjan_strongconnect (unsigned int *scc_counter, | |||
55 | for (t = v->transitions_head; NULL != t; t = t->next) | 55 | for (t = v->transitions_head; NULL != t; t = t->next) |
56 | { | 56 | { |
57 | w = t->to_state; | 57 | w = t->to_state; |
58 | if (NULL != w && w->index < 0) | 58 | |
59 | if (NULL == w) | ||
60 | continue; | ||
61 | |||
62 | if (w->index < 0) | ||
59 | { | 63 | { |
60 | scc_tarjan_strongconnect (scc_counter, w, index, stack, stack_size); | 64 | scc_tarjan_strongconnect (scc_counter, w, index, stack, stack_size); |
61 | v->lowlink = (v->lowlink > w->lowlink) ? w->lowlink : v->lowlink; | 65 | v->lowlink = (v->lowlink > w->lowlink) ? w->lowlink : v->lowlink; |