code cleanup #2

This commit is contained in:
SJ
2015-12-28 14:50:37 +01:00
parent dd83ee8fb1
commit ccb3d72b8e
9 changed files with 50 additions and 40 deletions

View File

@@ -121,6 +121,8 @@ struct rule *create_rule_item(struct rule_cond *rule_cond, struct __data *data){
char empty = '\0';
int len;
if(rule_cond == NULL) return NULL;
if((h = malloc(sizeof(struct rule))) == NULL)
return NULL;