]> granicus.if.org Git - procps-ng/commitdiff
watch: fixing uninitialized variable
authorJaromir Capik <jcapik@redhat.com>
Mon, 8 Sep 2014 16:24:28 +0000 (18:24 +0200)
committerJaromir Capik <jcapik@redhat.com>
Mon, 8 Sep 2014 16:24:28 +0000 (18:24 +0200)
watch.c

diff --git a/watch.c b/watch.c
index 84fd58bef6d1db4ce98c00a001963ffa438562e8..5c177a2828ea28db4cb1b53b1452f7275586c683 100644 (file)
--- a/watch.c
+++ b/watch.c
@@ -473,7 +473,7 @@ static int run_command(char *restrict command, char **restrict command_argv)
 
        reset_ansi();
        for (y = show_title; y < height; y++) {
-               int eolseen = 0, tabpending = 0, tabwaspending;
+               int eolseen = 0, tabpending = 0, tabwaspending = 0;
                set_ansi_attribute(-1);
 #ifdef WITH_WATCH8BIT
                wint_t carry = WEOF;