diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2011-02-17 18:53:35 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2011-02-17 18:53:35 +0000 |
commit | 56d74752d13fb6bfcc4b19a1109c964f85ca71d1 (patch) | |
tree | 724799e0e87baad07ad2bd696907a55eb63da4a1 /epan/radius_dict.l | |
parent | f749439b717df0433d9d335b3c3c840a81b7d1f7 (diff) |
Fix dead initialization error found by clang:
"Value stored to 's' during its initialization is never read"
(it's assigned by a later g_hash_table_lookup call)
svn path=/trunk/; revision=35983
Diffstat (limited to 'epan/radius_dict.l')
-rw-r--r-- | epan/radius_dict.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/radius_dict.l b/epan/radius_dict.l index 05611ebfea..2ebe3f4a51 100644 --- a/epan/radius_dict.l +++ b/epan/radius_dict.l @@ -383,7 +383,7 @@ void add_attribute(const gchar* name, const gchar* codestr, radius_attr_dissect void add_tlv(const gchar* name, const gchar* codestr, radius_attr_dissector_t type, const gchar* current_attr) { radius_attr_info_t* a; - radius_attr_info_t* s = g_malloc(sizeof(radius_attr_info_t)); + radius_attr_info_t* s; guint32 code; a = g_hash_table_lookup(dict->attrs_by_name, current_attr); |