Permalink
Browse files

Fix potential crash in msUpdateLayerFromString (#5521)

  • Loading branch information...
szekerest committed Nov 15, 2017
1 parent 67f4dbb commit fd2bd750ab597b3fabb34a014bdff14801171308
Showing with 4 additions and 1 deletion.
  1. +4 −1 mapfile.c
View
@@ -305,7 +305,10 @@ int msBuildPluginLibraryPath(char **dest, const char *lib_str, mapObj *map)
{
char szLibPath[MS_MAXPATHLEN] = { '\0' };
char szLibPathExt[MS_MAXPATHLEN] = { '\0' };
const char *plugin_dir = msLookupHashTable( &(map->configoptions), "MS_PLUGIN_DIR");
const char *plugin_dir = NULL;
if (map)
plugin_dir = msLookupHashTable(&(map->configoptions), "MS_PLUGIN_DIR");
/* do nothing on windows, filename without .dll will be loaded by default*/
#if !defined(_WIN32)

0 comments on commit fd2bd75

Please sign in to comment.