Skip to content

Commit

Permalink
&err only populated when io_opts == NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
mnunberg committed Jan 29, 2012
1 parent 532f92e commit ffd6d9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Client.xs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ SV *PLCB_construct(const char *pkg, AV *options)

io_ops = libcouchbase_create_io_ops(
LIBCOUCHBASE_IO_OPS_DEFAULT, NULL, &err);
if(err != LIBCOUCHBASE_SUCCESS) {

if(io_ops == NULL && err != LIBCOUCHBASE_SUCCESS) {
die("Couldn't create new IO operations: %d", err);
}

Expand Down

0 comments on commit ffd6d9d

Please sign in to comment.