From 92c7f0aa9b0cd513e14e11cde6037801809faa94 Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 1 May 2013 15:01:25 -0700 Subject: [PATCH] cmLib.c:cmLibInitialize() now checks for empty as well as NULL library path before scanning for libraries. --- cmLib.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmLib.c b/cmLib.c index afca329..443b586 100644 --- a/cmLib.c +++ b/cmLib.c @@ -5,11 +5,13 @@ #include "cmCtx.h" #include "cmMem.h" #include "cmMallocDebug.h" +#include "cmLinkedHeap.h" #include "cmFileSys.h" #include "cmLib.h" +#include "cmText.h" -#ifdef OS_LINUX +#ifndef NDEF #include @@ -119,7 +121,7 @@ cmLibRC_t cmLibInitialize( cmCtx_t* ctx, cmLibH_t* hp, const cmChar_t* dirStr ) hp->h = p; - if( dirStr != NULL ) + if( cmTextIsNotEmpty(dirStr) ) if((rc = cmLibScan(*hp,dirStr)) != kOkLibRC ) hp->h = NULL;