Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 11 Apr 2011 09:20:10 +0000 (11:20 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 11 Apr 2011 09:20:10 +0000 (11:20 +0200)
src/http.c

index 7546047..0fb1434 100644 (file)
@@ -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);