Commit 169c6dcc authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Added NULL argument checking

parent 4bb4130c
...@@ -3276,6 +3276,9 @@ BOOL check_name(scfg_t* cfg, const char* name) ...@@ -3276,6 +3276,9 @@ BOOL check_name(scfg_t* cfg, const char* name)
char tmp[512]; char tmp[512];
size_t len; size_t len;
if(name == NULL)
return FALSE;
len=strlen(name); len=strlen(name);
if(len<1) if(len<1)
return FALSE; return FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment