Permalink
Browse files

&err only populated when io_opts == NULL

  • Loading branch information...
mnunberg committed Jan 29, 2012
1 parent 532f92e commit ffd6d9d5993f919733adadd74b6dfa85ab8ab792
Showing with 2 additions and 1 deletion.
  1. +2 −1 Client.xs
View
@@ -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);
}

0 comments on commit ffd6d9d

Please sign in to comment.