projects
/
yazpp-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Require YAZ 3.0.26 or later.
[yazpp-moved-to-github.git]
/
src
/
yaz-my-client.cpp
diff --git
a/src/yaz-my-client.cpp
b/src/yaz-my-client.cpp
index
e359be3
..
8f9469e
100644
(file)
--- a/
src/yaz-my-client.cpp
+++ b/
src/yaz-my-client.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 1998-2007, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 1998-2007, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-my-client.cpp,v 1.27 2007-04-12 15:00:33 adam Exp $
+ * $Id: yaz-my-client.cpp,v 1.29 2007-05-02 09:17:48 adam Exp $
*/
#include <stdlib.h>
*/
#include <stdlib.h>
@@
-113,14
+113,10
@@
void usage(char *prog)
char *MyClient::get_cookie(Z_OtherInformation **otherInfo)
{
char *MyClient::get_cookie(Z_OtherInformation **otherInfo)
{
- Z_OtherInformationUnit *oi;
+ Z_OtherInformationUnit *oi =
+ update_otherInformation(otherInfo, 0, yaz_oid_userinfo_cookie, 1, 1);
- const int *oid =
- yaz_string_to_oid(yaz_oid_std(), CLASS_USERINFO, OID_STR_COOKIE);
-
- if (oid &&
- (oi = update_otherInformation(otherInfo, 0, oid, 1, 1)) &&
- oi->which == Z_OtherInfo_characterInfo)
+ if (oi && oi->which == Z_OtherInfo_characterInfo)
return oi->information.characterInfo;
return 0;
}
return oi->information.characterInfo;
return 0;
}