X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fhttp.c;h=0fb1434c37d3d0f0a24fd389e5038dd5165b3adb;hb=dbd362a3dc1cfcafbcbafee0d5b28a4397fe7f03;hp=7546047cfc1cd6cbca5c1c738654da01e9313490;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35;p=yaz-moved-to-github.git diff --git a/src/http.c b/src/http.c index 7546047..0fb1434 100644 --- a/src/http.c +++ b/src/http.c @@ -233,6 +233,8 @@ void z_HTTP_header_add_basic_auth(ODR o, Z_HTTP_Header **hp, if (username == 0) return; + if (password == 0) + password = ""; len = strlen(username) + strlen(password); tmp = (char *) odr_malloc(o, len+2);