summaryrefslogtreecommitdiff
path: root/convert.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 /convert.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 'convert.c')
-rw-r--r--convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/convert.c b/convert.c
index 72cb6fe..1389c7c 100644
--- a/convert.c
+++ b/convert.c
@@ -120,7 +120,7 @@ struct tm *tim;
st.d = tim->tm_mday;
st.y = tim->tm_year + 1900;
- mylog("copy_and_convert: field_type = %d, fctype = %d, value = '%s', cbValueMax=%d\n", field_type, fCType, value, cbValueMax);
+ mylog("copy_and_convert: field_type = %d, fctype = %d, value = '%s', cbValueMax=%d\n", field_type, fCType, (value==NULL)?"<NULL>":value, cbValueMax);
if ( ! value) {
/* handle a null just by returning SQL_NULL_DATA in pcbValue, */