diff options
Diffstat (limited to 'conditions.c')
-rw-r--r-- | conditions.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/conditions.c b/conditions.c index 939ed260e0..941fbae02b 100644 --- a/conditions.c +++ b/conditions.c @@ -86,9 +86,11 @@ condition* cnd_new(const char* class_id, ...){ void cnd_delete(condition *cnd){ _cnd_class *cls = NULL; - const char* class_id = cnd->class_id; + const char* class_id; /* check for valid pointer */ if(cnd == NULL) return; + + class_id = cnd->class_id; /* check if hash table is already initialized */ _cnd_init(); /* get the condition class */ |