Skip to content

Commit

Permalink
"empty" bucket name should be treated as NULL
Browse files Browse the repository at this point in the history
Change-Id: Ib39487055f2cffea58bdc03f99c726e84c827a19
Reviewed-on: http://review.couchbase.org/12559
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
  • Loading branch information
trondn committed Jan 21, 2012
1 parent 393de39 commit 652b6b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/instance.c
Expand Up @@ -68,7 +68,7 @@ libcouchbase_t libcouchbase_create(const char *host,
host = "localhost";
}

if (bucket == NULL) {
if (bucket == NULL || strlen(bucket) == 0) {
bucket = "default";
}

Expand Down

0 comments on commit 652b6b2

Please sign in to comment.