projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
compact
(merge:
9241ae4
ec51dde
)
Merge pull request #2772 from rubenk/static-initializers
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Mon, 14 May 2018 12:52:04 +0000
(14:52 +0200)
committer
GitHub
<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
patch
|
diff1
|
diff2
|
blob
|
history
diff --combined
src/daemon/collectd.c
index
1d19be5
,
d15bb33
..
a656b37
---
1
/
src/daemon/collectd.c
---
2
/
src/daemon/collectd.c
+++ b/
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) */