diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-07-16 01:55:58 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-07-16 01:55:58 +0000 |
commit | 596a1e5a5a96c47ea9ad24bc07a6eb69fca704cd (patch) | |
tree | 3ddf061393979a1bf0f3875314f35157328d9c10 /epan/dissectors/packet-radius.c | |
parent | 7424fda26694109bafacb68c8689dd1ed36459f7 (diff) |
Get rid of the newline between "radius:" and the error when trying to
read the RADIUS directory.
The error string from "radius_load_dictionary()" is g_malloced; free it,
and g_strdup the "Could not find the radius directory" error, so we
don't have to worry about constant vs. g_malloced strings.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14937 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-radius.c')
-rw-r--r-- | epan/dissectors/packet-radius.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-radius.c b/epan/dissectors/packet-radius.c index f45c8c52a5..4f2601c92f 100644 --- a/epan/dissectors/packet-radius.c +++ b/epan/dissectors/packet-radius.c @@ -802,11 +802,12 @@ proto_register_radius(void) dict = radius_load_dictionary(dir,"dictionary",&dict_err_str); } else { dict = NULL; - dict_err_str = "Could not find the radius directory"; + dict_err_str = g_strdup("Could not find the radius directory"); } if (dict_err_str) { - report_failure("radius:\n%s",dict_err_str); + report_failure("radius: %s",dict_err_str); + g_free(dict_err_str); } if (dict) { |