r16403 - gnucash/trunk/src/bin - Given set_log_level will maintain its own safe copy of the string, we don't need to 'dup it.

Josh Sled jsled at cvs.gnucash.org
Wed Aug 8 00:20:46 EDT 2007


Author: jsled
Date: 2007-08-08 00:20:45 -0400 (Wed, 08 Aug 2007)
New Revision: 16403
Trac: http://svn.gnucash.org/trac/changeset/16403

Modified:
   gnucash/trunk/src/bin/gnucash-bin.c
Log:
Given set_log_level will maintain its own safe copy of the string, we don't need to 'dup it.


Modified: gnucash/trunk/src/bin/gnucash-bin.c
===================================================================
--- gnucash/trunk/src/bin/gnucash-bin.c	2007-08-08 04:19:22 UTC (rev 16402)
+++ gnucash/trunk/src/bin/gnucash-bin.c	2007-08-08 04:20:45 UTC (rev 16403)
@@ -538,10 +538,9 @@
                     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);
           }
      }



More information about the gnucash-changes mailing list