cmLib.c:cmLibInitialize() now checks for empty as well as NULL library path
before scanning for libraries.
This commit is contained in:
parent
894d39466b
commit
92c7f0aa9b
6
cmLib.c
6
cmLib.c
@ -5,11 +5,13 @@
|
|||||||
#include "cmCtx.h"
|
#include "cmCtx.h"
|
||||||
#include "cmMem.h"
|
#include "cmMem.h"
|
||||||
#include "cmMallocDebug.h"
|
#include "cmMallocDebug.h"
|
||||||
|
#include "cmLinkedHeap.h"
|
||||||
#include "cmFileSys.h"
|
#include "cmFileSys.h"
|
||||||
|
|
||||||
#include "cmLib.h"
|
#include "cmLib.h"
|
||||||
|
#include "cmText.h"
|
||||||
|
|
||||||
#ifdef OS_LINUX
|
#ifndef NDEF
|
||||||
|
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|
||||||
@ -119,7 +121,7 @@ cmLibRC_t cmLibInitialize( cmCtx_t* ctx, cmLibH_t* hp, const cmChar_t* dirStr )
|
|||||||
|
|
||||||
hp->h = p;
|
hp->h = p;
|
||||||
|
|
||||||
if( dirStr != NULL )
|
if( cmTextIsNotEmpty(dirStr) )
|
||||||
if((rc = cmLibScan(*hp,dirStr)) != kOkLibRC )
|
if((rc = cmLibScan(*hp,dirStr)) != kOkLibRC )
|
||||||
hp->h = NULL;
|
hp->h = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user