projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't initialize static pointers to NULL
[collectd.git]
/
src
/
bind.c
diff --git
a/src/bind.c
b/src/bind.c
index
5937d26
..
2d10aba
100644
(file)
--- a/
src/bind.c
+++ b/
src/bind.c
@@
-104,9
+104,9
@@
typedef struct list_info_ptr_s list_info_ptr_t;
/* FIXME: Enabled by default for backwards compatibility. */
/* TODO: Remove time parsing code. */
/* FIXME: Enabled by default for backwards compatibility. */
/* TODO: Remove time parsing code. */
-static bool config_parse_time =
1
;
+static bool config_parse_time =
true
;
-static char *url
= NULL
;
+static char *url;
static int global_opcodes = 1;
static int global_qtypes = 1;
static int global_server_stats = 1;
static int global_opcodes = 1;
static int global_qtypes = 1;
static int global_server_stats = 1;
@@
-115,12
+115,12
@@
static int global_resolver_stats = 0;
static int global_memory_stats = 1;
static int timeout = -1;
static int global_memory_stats = 1;
static int timeout = -1;
-static cb_view_t *views
= NULL
;
+static cb_view_t *views;
static size_t views_num = 0;
static size_t views_num = 0;
-static CURL *curl
= NULL
;
+static CURL *curl;
-static char *bind_buffer
= NULL
;
+static char *bind_buffer;
static size_t bind_buffer_size = 0;
static size_t bind_buffer_fill = 0;
static char bind_curl_error[CURL_ERROR_SIZE];
static size_t bind_buffer_size = 0;
static size_t bind_buffer_fill = 0;
static char bind_curl_error[CURL_ERROR_SIZE];
@@
-1567,9
+1567,8
@@
static int bind_init(void) /* {{{ */
curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 50L);
#ifdef HAVE_CURLOPT_TIMEOUT_MS
curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS,
curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 50L);
#ifdef HAVE_CURLOPT_TIMEOUT_MS
curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS,
- (timeout >= 0)
- ? (long)timeout
- : (long)CDTIME_T_TO_MS(plugin_get_interval()));
+ (timeout >= 0) ? (long)timeout : (long)CDTIME_T_TO_MS(
+ plugin_get_interval()));
#endif
return 0;
#endif
return 0;