2007.
[idzebra-moved-to-github.git] / util / zebramap.c
index b075257..2a836b0 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: zebramap.c,v 1.53 2006-09-08 14:41:00 adam Exp $
-   Copyright (C) 1995-2006
+/* $Id: zebramap.c,v 1.55 2007-01-15 15:10:26 adam Exp $
+   Copyright (C) 1995-2007
    Index Data ApS
 
    This file is part of the Zebra server.
@@ -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);