summaryrefslogtreecommitdiffstats
path: root/ts3db.c
diff options
context:
space:
mode:
Diffstat (limited to 'ts3db.c')
-rw-r--r--ts3db.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/ts3db.c b/ts3db.c
index 33bc9b0..69085f4 100644
--- a/ts3db.c
+++ b/ts3db.c
@@ -232,14 +232,8 @@ unsigned int ts3dbplugin_open(unsigned int connection_nr, const char* query,
log("new row done.", LOG_DEBUG);
for (j = 0; j < col_count; j++) {
- if (PQgetisnull(result, i, j) == 1) {
- log("<NULL>", LOG_DEBUG);
- new_value(j, NULL, context);
- }
- else {
- log(PQgetvalue(result, i, j), LOG_DEBUG);
- new_value(j, PQgetvalue(result, i, j), context);
- }
+ log(PQgetvalue(result, i, j), LOG_DEBUG);
+ new_value(j, PQgetvalue(result, i, j), context);
}
}