From: Ruben Kerkhof Date: Sat, 23 Apr 2016 09:49:58 +0000 (+0200) Subject: dbi plugin: remove assignment with no effect X-Git-Tag: collectd-5.6.0~329^2~15 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9b1d719eb8a8ee9a60e6badf29b9a9ee2d573f43;p=collectd.git dbi plugin: remove assignment with no effect [src/dbi.c:513] -> [src/dbi.c:518]: (performance) Variable 'res' is reassigned a value before the old one has been used. --- diff --git a/src/dbi.c b/src/dbi.c index 655581e8..6e981687 100644 --- a/src/dbi.c +++ b/src/dbi.c @@ -510,7 +510,6 @@ static int cdbi_read_database_query (cdbi_database_t *db, /* {{{ */ column_names = NULL; column_values = NULL; - res = NULL; statement = udb_query_get_statement (q); assert (statement != NULL);