Added an explicit warning and use local directory for NAS UE path access.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5042 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
winckel
2014-02-06 10:57:27 +00:00
parent e334f70b02
commit c044eeab4a
+3 -1
View File
@@ -20,6 +20,7 @@ Description Memory access utilities
#include "memory.h"
#include "commonDef.h"
#include "nas_log.h"
#include <stdio.h> // fopen, fread, fclose
#include <stdlib.h> // getenv, malloc, free
@@ -64,7 +65,8 @@ char* memory_get_path(const char* dirname, const char* filename)
path = getenv(DEFAULT_NAS_PATH);
}
if (path == NULL) {
return NULL;
LOG_TRACE(WARNING, "MEMORY - %s and %s environment variables are not defined trying local directory", dirname, DEFAULT_NAS_PATH);
path = ".";
}
/* Append non-volatile data file name */