Code

src/utils_db_query.c: When asked for the user data, return the user data.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 2 Feb 2009 20:57:08 +0000 (21:57 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 2 Feb 2009 20:57:08 +0000 (21:57 +0100)
Appreciate this patch, it cost me one fucking hour of my live!

src/utils_db_query.c

index 87f36d29d25b41bdff5b454e82195cb820c4a4d4..27e8a55f9a94aeeb88758bacd007fb5bd8fe97eb 100644 (file)
@@ -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) /* {{{ */