summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Henzel <CristianHenzel@users.noreply.github.com>2018-06-29 14:17:45 +0300
committerDmitry Smirnov <onlyjob@debian.org>2018-07-07 08:03:38 +0200
commitb81d94d40b1ef11b873e9e8e37cb3a077aa8c7ea (patch)
tree2284bf8a45914a867fdd17848ee729baaf333002
parentf38d473465c8854dfe70a87cd88bf6aedf15e8c3 (diff)
[PATCH] Initialize count
Gbp-Pq: Name 91.patch
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 2b44995..b67d400 100644
--- a/src/main.c
+++ b/src/main.c
@@ -555,7 +555,7 @@ gboolean selected_by_input(const GtkWidget *history_menu, const GdkEventKey *eve
GtkMenuItem *menu_item, *first_match = 0;
const gchar* menu_label;
- int count, match_count = 0;
+ int count = 0, match_count = 0;
char* match;
while (element->next != NULL && count < prefs.items_menu) {