Permalink
Browse files

"Null pointer 'type' that comes from line 202 may be dereferenced at

line 240." (Klocwork.com Issue #98)

git-svn-id: svn://cherokee-project.com/cherokee/trunk@6708 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
1 parent 58c5535 commit 01cffc9c019c53c81bff39a2ce98b206375d787a @alobbs alobbs committed May 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cherokee/rule_header.c
View
@@ -237,7 +237,7 @@ configure (cherokee_rule_header_t *rule,
*/
ret = cherokee_config_node_copy (conf, "match", &rule->match);
if (ret != ret_ok) {
- if (equal_buf_str (type, "regex")) {
+ if ((type) && equal_buf_str (type, "regex")) {
LOG_ERROR (CHEROKEE_ERROR_RULE_NO_PROPERTY,
RULE(rule)->priority, "match");
return ret_error;

0 comments on commit 01cffc9

Please sign in to comment.