mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-31 09:34:56 +01:00
Reduce variable scope
This commit is contained in:
parent
2e23d02572
commit
214cbdfc61
1 changed files with 1 additions and 2 deletions
|
@ -1935,7 +1935,6 @@ search(void* parameter)
|
||||||
static int direction;
|
static int direction;
|
||||||
static int next_page = 0;
|
static int next_page = 0;
|
||||||
gchar* old_query = NULL;
|
gchar* old_query = NULL;
|
||||||
int page_counter;
|
|
||||||
GList* results = NULL;
|
GList* results = NULL;
|
||||||
|
|
||||||
if(argument->n != NO_SEARCH)
|
if(argument->n != NO_SEARCH)
|
||||||
|
@ -1980,7 +1979,7 @@ search(void* parameter)
|
||||||
|
|
||||||
g_static_mutex_unlock(&(Zathura.Lock.pdf_obj_lock));
|
g_static_mutex_unlock(&(Zathura.Lock.pdf_obj_lock));
|
||||||
|
|
||||||
page_counter = (g_strcmp0(old_query,search_item) == 0) ? 1 : 0;
|
int page_counter = (g_strcmp0(old_query,search_item) == 0) ? 1 : 0;
|
||||||
for( ; page_counter <= number_of_pages; page_counter++)
|
for( ; page_counter <= number_of_pages; page_counter++)
|
||||||
{
|
{
|
||||||
g_static_mutex_lock(&(Zathura.Lock.search_lock));
|
g_static_mutex_lock(&(Zathura.Lock.search_lock));
|
||||||
|
|
Loading…
Reference in a new issue