X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fkcompare.c;h=c4ca9853ee68d0e05423a6ba31bf3be61aa8981b;hb=d089fa72c83a673c788d828687dbec88fe9d1c4a;hp=af027090abf4ac4b41f20bd01d263bf7f1df5c0a;hpb=cef013b96c9508d5fd8552e7fd05962029b37e6f;p=idzebra-moved-to-github.git diff --git a/index/kcompare.c b/index/kcompare.c index af02709..c4ca985 100644 --- a/index/kcompare.c +++ b/index/kcompare.c @@ -1,6 +1,6 @@ -/* $Id: kcompare.c,v 1.52 2004-09-15 08:13:51 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 - Index Data Aps +/* $Id: kcompare.c,v 1.59 2006-07-04 14:10:30 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -33,9 +33,11 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #define CODEC_INLINE #endif -void key_logdump_txt (int logmask, const void *p, const char *txt) +void key_logdump_txt(int logmask, const void *p, const char *txt) { struct it_key key; + if (!txt) + txt = "(none)"; if (p) { char formstr[128]; @@ -46,17 +48,17 @@ void key_logdump_txt (int logmask, const void *p, const char *txt) *formstr = '\0'; for (i = 0; icompare_item = key_compare; me->log_item = key_logdump_txt; @@ -336,3 +345,11 @@ int key_SU_decode (int *ch, const unsigned char *out) return len; } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +