projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor cleaning, removed a crash from error reporting routines
[idzebra-moved-to-github.git]
/
index
/
zebraapi.c
diff --git
a/index/zebraapi.c
b/index/zebraapi.c
index
79a90b7
..
711dbc5
100644
(file)
--- a/
index/zebraapi.c
+++ b/
index/zebraapi.c
@@
-1,4
+1,4
@@
-/* $Id: zebraapi.c,v 1.80 2003-01-13 10:56:09 oleg Exp $
+/* $Id: zebraapi.c,v 1.82 2003-02-11 14:01:39 heikki Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
@@
-571,7
+571,7
@@
void map_basenames_func (void *vp, const char *name, const char *value)
return ;
no--;
for (i = 0; i<p->num_bases; i++)
return ;
no--;
for (i = 0; i<p->num_bases; i++)
- if (p->basenames[i] && !strcmp (p->basenames[i], fromdb))
+ if (p->basenames[i] && !STRCASECMP (p->basenames[i], fromdb))
{
p->basenames[i] = 0;
for (i = 0; i < no; i++)
{
p->basenames[i] = 0;
for (i = 0; i < no; i++)
@@
-834,17
+834,23
@@
int zebra_deleleResultSet(ZebraHandle zh, int function,
int zebra_errCode (ZebraHandle zh)
{
int zebra_errCode (ZebraHandle zh)
{
- return zh->errCode;
+ if (zh)
+ return zh->errCode;
+ return 0; /* is this the right thing to return ?*/
}
const char *zebra_errString (ZebraHandle zh)
{
}
const char *zebra_errString (ZebraHandle zh)
{
- return diagbib1_str (zh->errCode);
+ if (zh)
+ return diagbib1_str (zh->errCode);
+ return "";
}
char *zebra_errAdd (ZebraHandle zh)
{
}
char *zebra_errAdd (ZebraHandle zh)
{
- return zh->errString;
+ if (zh)
+ return zh->errString;
+ return "";
}
int zebra_auth (ZebraHandle zh, const char *user, const char *pass)
}
int zebra_auth (ZebraHandle zh, const char *user, const char *pass)