summaryrefslogtreecommitdiff
path: root/qresult.c
diff options
context:
space:
mode:
authorThomas G. Lockhart1998-11-04 16:24:32 +0000
committerThomas G. Lockhart1998-11-04 16:24:32 +0000
commit45849651d0ef97a8fe9128701a380ee10dbc3a58 (patch)
tree5da730127755e642bdaa126609c0ecf252063367 /qresult.c
parent2325d600dc6b6c8450d5160e0c369d06ff70c81b (diff)
Test for and handle NULL arguments to mylog() print statements.REL6_4
Include definition for _IN_ADDR_T if INADDR_NONE is not defined.
Diffstat (limited to 'qresult.c')
-rw-r--r--qresult.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/qresult.c b/qresult.c
index 7140635..cae730d 100644
--- a/qresult.c
+++ b/qresult.c
@@ -186,7 +186,8 @@ QR_fetch_tuples(QResultClass *self, ConnectionClass *conn, char *cursor)
if (conn != NULL) {
self->conn = conn;
- mylog("QR_fetch_tuples: cursor = '%s', self->cursor=%u\n", cursor, self->cursor);
+ mylog("QR_fetch_tuples: cursor = '%s', self->cursor=%u\n",
+ (cursor==NULL)?"":cursor, self->cursor);
if (self->cursor)
free(self->cursor);