From: Adam Dickmeiss Date: Tue, 5 Dec 2006 09:24:47 +0000 (+0000) Subject: Deal with NULL profile_path. X-Git-Tag: ZEBRA.2.0.8~58 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=6b553b7b42f0a2940c9765b9811e5db44ba8265f;p=idzebra-moved-to-github.git Deal with NULL profile_path. --- 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);