From 2527066cb4fb1ca7c532050b801c63c1b65f19d6 Mon Sep 17 00:00:00 2001 From: Joshua Sled Date: Wed, 8 Aug 2007 04:20:45 +0000 Subject: [PATCH] Given set_log_level will maintain its own safe copy of the string, we don't need to 'dup it. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16403 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/bin/gnucash-bin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/gnucash-bin.c b/src/bin/gnucash-bin.c index 38bf7029e8..5fee4795a7 100644 --- a/src/bin/gnucash-bin.c +++ b/src/bin/gnucash-bin.c @@ -538,10 +538,9 @@ gnc_log_init() continue; } - logger_name = g_strdup(parts[0]); level = qof_log_level_from_string(parts[1]); - qof_log_set_level(logger_name, level); + qof_log_set_level(parts[0], level); g_strfreev(parts); } }