]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cal: fix Sexit and Senter
authorKarel Zak <kzak@redhat.com>
Mon, 18 Feb 2019 12:10:58 +0000 (13:10 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Feb 2019 12:10:58 +0000 (13:10 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/cal.c

index bd643f3b49ed87a4bef30074d80d76ceebdbe74d..bbb22505e70bd9cbaec5ac1f06d4c58b1d07eccc 100644 (file)
@@ -561,7 +561,7 @@ int main(int argc, char **argv)
                        ;
                } else {
                        /* disable */
-                       Senter = Sexit = '\0';
+                       Senter = ""; Sexit = "";
                        ctl.req.day = 0;
                        ctl.weektype &= ~WEEK_NUM_MASK;
                }