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
This commit is contained in:
Joshua Sled 2007-08-08 04:20:45 +00:00
parent 86f3842984
commit 2527066cb4

View File

@ -538,10 +538,9 @@ gnc_log_init()
continue; continue;
} }
logger_name = g_strdup(parts[0]);
level = qof_log_level_from_string(parts[1]); 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); g_strfreev(parts);
} }
} }