X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fzebramap.c;h=96c162337de7c82ffad2e4a8b060ac7317fba154;hb=3fbd2beb5c41de39604f27b39a9461335b2b176b;hp=b075257e24094de70f3f1c9a8af9e6d4cb3747c9;hpb=c33ea56e3771c3b80ba66ef8fda3a09cad171ebb;p=idzebra-moved-to-github.git diff --git a/util/zebramap.c b/util/zebramap.c index b075257..96c1623 100644 --- a/util/zebramap.c +++ b/util/zebramap.c @@ -1,4 +1,4 @@ -/* $Id: zebramap.c,v 1.53 2006-09-08 14:41:00 adam Exp $ +/* $Id: zebramap.c,v 1.54 2006-12-05 09:24:47 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -205,7 +205,7 @@ ZebraMaps zebra_maps_open(Res res, const char *base_path, zms->nmem = nmem_create(); zms->no_maps = 0; - zms->tabpath = nmem_strdup(zms->nmem, profile_path); + zms->tabpath = profile_path ? nmem_strdup(zms->nmem, profile_path) : 0; zms->tabroot = 0; if (base_path) zms->tabroot = nmem_strdup(zms->nmem, base_path);