r15209 - gnucash/trunk/lib/libqof/qof - Code cleanup: Move variable declaration into block where it is used.

Christian Stimming cstim at cvs.gnucash.org
Tue Dec 12 06:34:43 EST 2006


Author: cstim
Date: 2006-12-12 06:34:42 -0500 (Tue, 12 Dec 2006)
New Revision: 15209
Trac: http://svn.gnucash.org/trac/changeset/15209

Modified:
   gnucash/trunk/lib/libqof/qof/qofquerycore.c
Log:
Code cleanup: Move variable declaration into block where it is used.

Modified: gnucash/trunk/lib/libqof/qof/qofquerycore.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/qofquerycore.c	2006-12-12 11:33:03 UTC (rev 15208)
+++ gnucash/trunk/lib/libqof/qof/qofquerycore.c	2006-12-12 11:34:42 UTC (rev 15209)
@@ -257,7 +257,6 @@
                             gboolean is_regex)
 {
   query_string_t pdata;
-  int rc;
 
   g_return_val_if_fail (str, NULL);
   g_return_val_if_fail (*str != '\0', NULL);
@@ -270,6 +269,7 @@
   pdata->matchstring = g_strdup (str);
 
   if (is_regex) {
+    int rc;
     int flags = REG_EXTENDED;
     if (options == QOF_STRING_MATCH_CASEINSENSITIVE)
       flags |= REG_ICASE;



More information about the gnucash-changes mailing list