aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-07-16 01:55:58 +0000
committerGuy Harris <guy@alum.mit.edu>2005-07-16 01:55:58 +0000
commit9859c05fbc351b9d6b6bcf28ac5ab49ef6ed3155 (patch)
tree3ddf061393979a1bf0f3875314f35157328d9c10 /epan
parent8e4007ef275ce3761f8ef23749280baf13554a2b (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. svn path=/trunk/; revision=14937
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-radius.c5
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) {