Merge pull request #2772 from rubenk/static-initializers
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 May 2018 12:52:04 +0000 (14:52 +0200)
committerGitHub <noreply@github.com>
Mon, 14 May 2018 12:52:04 +0000 (14:52 +0200)
Don't initialize static pointers to NULL

1  2 
src/daemon/collectd.c

diff --combined src/daemon/collectd.c
@@@ -51,7 -51,7 +51,7 @@@
  #define COLLECTD_LOCALE "C"
  #endif
  
- static int loop = 0;
+ static int loop;
  
  static void *do_flush(void __attribute__((unused)) * arg) {
    INFO("Flushing all data.");
@@@ -489,6 -489,7 +489,6 @@@ static void read_cmdline(int argc, cha
  #endif /* COLLECT_DAEMON */
      case 'h':
        exit_usage(0);
 -      break;
      default:
        exit_usage(1);
      } /* switch (c) */