X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-my-client.cpp;h=5fc292d35ffefc42146ecf78eab4091d7e531d2f;hp=e359be36a4ef3f93f31ab56ee7c7d66e8add4439;hb=fa96bc0dcc16f6ac3e33b5144664e51cb7d09874;hpb=ca58a20d661f245f8c3974fae6b61b50dada80f2 diff --git a/src/yaz-my-client.cpp b/src/yaz-my-client.cpp index e359be3..5fc292d 100644 --- 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. * - * $Id: yaz-my-client.cpp,v 1.27 2007-04-12 15:00:33 adam Exp $ + * $Id: yaz-my-client.cpp,v 1.28 2007-04-16 21:54:23 adam Exp $ */ #include @@ -113,14 +113,10 @@ void usage(char *prog) 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->which == Z_OtherInfo_characterInfo) return oi->information.characterInfo; return 0; }