diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-03-07 19:17:00 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-03-07 19:17:00 +0000 |
commit | 1e36c072592f79a550b5d545eeb0a1197fe149d1 (patch) | |
tree | b4a7c572181cf913bc760e61d22797965652c950 /conditions.c | |
parent | 0497d3f418680497903c0123bef4f8d911e35cf9 (diff) |
Fix Coverity run 12 CID 110: Make sure we don't dereference a NULL pointer.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17505 f5534014-38df-0310-8fa8-9805f1628bb7
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 */ |