projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix double declaration
[collectd.git]
/
src
/
postgresql.c
diff --git
a/src/postgresql.c
b/src/postgresql.c
index
41ce95c
..
65766a9
100644
(file)
--- a/
src/postgresql.c
+++ b/
src/postgresql.c
@@
-1188,7
+1188,7
@@
static int c_psql_config_database (oconfig_item_t *ci)
c_psql_database_t *db;
char cb_name[DATA_MAX_NAME_LEN];
c_psql_database_t *db;
char cb_name[DATA_MAX_NAME_LEN];
- user_data_t ud;
+ user_data_t ud
= { 0 }
;
static _Bool have_flush = 0;
static _Bool have_flush = 0;
@@
-1200,8
+1200,6
@@
static int c_psql_config_database (oconfig_item_t *ci)
return 1;
}
return 1;
}
- memset (&ud, 0, sizeof (ud));
-
db = c_psql_database_new (ci->values[0].value.string);
if (db == NULL)
return -1;
db = c_psql_database_new (ci->values[0].value.string);
if (db == NULL)
return -1;