From 320c1af62543f4beee222186c59212087c32251d Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Tue, 12 Dec 2006 11:34:42 +0000 Subject: [PATCH] Code cleanup: Move variable declaration into block where it is used. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15209 57a11ea4-9604-0410-9ed3-97b8803252fd --- lib/libqof/qof/qofquerycore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libqof/qof/qofquerycore.c b/lib/libqof/qof/qofquerycore.c index 374cd058ef..e51352033c 100644 --- a/lib/libqof/qof/qofquerycore.c +++ b/lib/libqof/qof/qofquerycore.c @@ -257,7 +257,6 @@ qof_query_string_predicate (QofQueryCompare how, 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 @@ qof_query_string_predicate (QofQueryCompare how, pdata->matchstring = g_strdup (str); if (is_regex) { + int rc; int flags = REG_EXTENDED; if (options == QOF_STRING_MATCH_CASEINSENSITIVE) flags |= REG_ICASE;