]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cmd: Do not initialise statics to 0
authorTobin C. Harding <me@tobin.cc>
Thu, 16 Aug 2018 06:57:36 +0000 (16:57 +1000)
committerTobin C. Harding <me@tobin.cc>
Thu, 16 Aug 2018 06:57:36 +0000 (16:57 +1000)
checkpatch.pl emits error

    ERROR: do not initialise statics to 0

Do not initialise statics to 0.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
src/lxc/cmd/lxc_init.c

index 651e9cb16c5b4b4fb404fe121b971e97474706bb..b800389d3a612d63a963089a0c9307411c335c54 100644 (file)
@@ -54,7 +54,7 @@
 
 lxc_log_define(lxc_init, lxc);
 
-static sig_atomic_t was_interrupted = 0;
+static sig_atomic_t was_interrupted;
 
 static void interrupt_handler(int sig)
 {