X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fzoom-c.c;h=e763918ec08f2a07c2a41d3f442114190f9a5144;hb=185071b355f704ffe9072b3221eedbda78558dda;hp=92154a7fc01607fbd15c99f38d3559b3c019a845;hpb=0b0eb588d2989d5bc7d77600e4e9b375d1eade12;p=yaz-moved-to-github.git diff --git a/src/zoom-c.c b/src/zoom-c.c index 92154a7..e763918 100644 --- a/src/zoom-c.c +++ b/src/zoom-c.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ /** @@ -337,7 +337,7 @@ char **ZOOM_connection_get_databases(ZOOM_connection con, ZOOM_options options, if (cp) cp++; } - if (!cp) + if (!cp || !*cp) cp = "Default"; nmem_strsplit(odr_getmem(odr), "+", cp, &databaseNames, num); return databaseNames;