From c044eeab4a3fe2b60db4bb4a94c71bb0402a167b Mon Sep 17 00:00:00 2001 From: winckel Date: Thu, 6 Feb 2014 10:57:27 +0000 Subject: [PATCH] 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 --- openair-cn/NAS/EURECOM-NAS/src/util/memory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openair-cn/NAS/EURECOM-NAS/src/util/memory.c b/openair-cn/NAS/EURECOM-NAS/src/util/memory.c index ad3c1cfc4e..95dfa73d56 100644 --- a/openair-cn/NAS/EURECOM-NAS/src/util/memory.c +++ b/openair-cn/NAS/EURECOM-NAS/src/util/memory.c @@ -20,6 +20,7 @@ Description Memory access utilities #include "memory.h" #include "commonDef.h" +#include "nas_log.h" #include // fopen, fread, fclose #include // 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 */