cmLib.c:cmLibInitialize() now checks for empty as well as NULL library path

before scanning for libraries.
This commit is contained in:
kevin 2013-05-01 15:01:25 -07:00
parent 894d39466b
commit 92c7f0aa9b

View File

@ -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 <dlfcn.h>
@ -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;