diff options
author | Pablo Barciela <[email protected]> | 2019-05-02 01:09:20 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-05-06 13:53:37 +0200 |
commit | a110c542bd7a16625f03c97e2fefa3be8da50c85 (patch) | |
tree | 7af078f9084b33eb0d5df7f3657a1f8049ff6b83 /libcaja-private/caja-search-engine-tracker.c | |
parent | 476f56a25be636970b336d525a7766b6d1eb3fff (diff) | |
download | caja-a110c542bd7a16625f03c97e2fefa3be8da50c85.tar.bz2 caja-a110c542bd7a16625f03c97e2fefa3be8da50c85.tar.xz |
libcaja-private: reduce the scope of some variables
Diffstat (limited to 'libcaja-private/caja-search-engine-tracker.c')
-rw-r--r-- | libcaja-private/caja-search-engine-tracker.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libcaja-private/caja-search-engine-tracker.c b/libcaja-private/caja-search-engine-tracker.c index f1ec2bfe..33ac6d9a 100644 --- a/libcaja-private/caja-search-engine-tracker.c +++ b/libcaja-private/caja-search-engine-tracker.c @@ -246,8 +246,6 @@ static void search_callback (gpointer results, GError *error, gpointer user_data) { CajaSearchEngineTracker *tracker; - char **results_p; - GPtrArray *OUT_result; GList *hit_uris; gint i; char *uri; @@ -271,6 +269,8 @@ search_callback (gpointer results, GError *error, gpointer user_data) if (tracker->details->version == TRACKER_0_8) { + GPtrArray *OUT_result; + /* new tracker 0.8 API */ OUT_result = (GPtrArray*) results; @@ -289,6 +289,8 @@ search_callback (gpointer results, GError *error, gpointer user_data) } else { + char **results_p; + /* old tracker 0.6 API */ for (results_p = results; *results_p; results_p++) { |