summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-search-engine-beagle.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-05-02 01:09:20 +0200
committerraveit65 <[email protected]>2022-07-20 00:04:14 +0200
commitfdb2e20b29bd1d2cf6e7b1a2fb93fc52c631927f (patch)
tree1c8c8a9001e359113708688dd9c98cdee15ad85a /libcaja-private/caja-search-engine-beagle.c
parent64b7d2640fc91c28db3a16239f8fe5f6243bec26 (diff)
downloadcaja-fdb2e20b29bd1d2cf6e7b1a2fb93fc52c631927f.tar.bz2
caja-fdb2e20b29bd1d2cf6e7b1a2fb93fc52c631927f.tar.xz
libcaja-private: reduce the scope of some variables
Diffstat (limited to 'libcaja-private/caja-search-engine-beagle.c')
-rw-r--r--libcaja-private/caja-search-engine-beagle.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libcaja-private/caja-search-engine-beagle.c b/libcaja-private/caja-search-engine-beagle.c
index 4b546898..17083199 100644
--- a/libcaja-private/caja-search-engine-beagle.c
+++ b/libcaja-private/caja-search-engine-beagle.c
@@ -214,7 +214,6 @@ beagle_hits_added (BeagleQuery *query,
{
GSList *hits, *list;
GList *hit_uris;
- const char *uri;
hit_uris = NULL;
@@ -222,6 +221,8 @@ beagle_hits_added (BeagleQuery *query,
for (list = hits; list != NULL; list = list->next)
{
+ const char *uri;
+
BeagleHit *hit = BEAGLE_HIT (list->data);
uri = beagle_hit_get_uri (hit);
@@ -290,7 +291,7 @@ caja_search_engine_beagle_start (CajaSearchEngine *engine)
CajaSearchEngineBeagle *beagle;
GError *error;
GList *mimetypes, *l;
- char *text, *mimetype;
+ char *text;
error = NULL;
beagle = CAJA_SEARCH_ENGINE_BEAGLE (engine);
@@ -325,6 +326,8 @@ caja_search_engine_beagle_start (CajaSearchEngine *engine)
for (l = mimetypes; l != NULL; l = l->next)
{
char* temp;
+ char *mimetype;
+
mimetype = l->data;
temp = g_strconcat (" mimetype:", mimetype, NULL);
beagle_query_add_text (beagle->details->current_query,temp);