From: Florian Forster Date: Mon, 2 Feb 2009 20:57:08 +0000 (+0100) Subject: src/utils_db_query.c: When asked for the user data, return the user data. X-Git-Tag: collectd-4.6.0~77 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f49c8154ad12901db5aaecb66cd4ccd3047856db;p=collectd.git src/utils_db_query.c: When asked for the user data, return the user data. Appreciate this patch, it cost me one fucking hour of my live! --- diff --git a/src/utils_db_query.c b/src/utils_db_query.c index 87f36d29..27e8a55f 100644 --- a/src/utils_db_query.c +++ b/src/utils_db_query.c @@ -723,7 +723,7 @@ void *udb_query_get_user_data (udb_query_t *q) /* {{{ */ if (q == NULL) return (NULL); - return (q->statement); + return (q->user_data); } /* }}} void *udb_query_get_user_data */ void udb_query_finish_result (udb_query_t *q) /* {{{ */