Skip to content
Snippets Groups Projects
Commit e0d705e1 authored by rswindell's avatar rswindell
Browse files

nular is now global (so it can be referenced by scfglib*.c)

parent 8b69fa90
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
#include "sbbs.h" #include "sbbs.h"
const uchar* nular=""; // AR_NULL
/* Converts ASCII ARS string into binary ARS buffer */ /* Converts ASCII ARS string into binary ARS buffer */
#ifdef __BORLANDC__ /* Eliminate warning when buildling Baja */ #ifdef __BORLANDC__ /* Eliminate warning when buildling Baja */
...@@ -44,7 +46,6 @@ ...@@ -44,7 +46,6 @@
#endif #endif
uchar* arstr(ushort* count, char* str, scfg_t* cfg) uchar* arstr(ushort* count, char* str, scfg_t* cfg)
{ {
static uchar nular[2]={0};
char *p; char *p;
uchar ar[256],*ar_buf; uchar ar[256],*ar_buf;
uint i,j,n,artype=AR_LEVEL,not=0,equal=0; uint i,j,n,artype=AR_LEVEL,not=0,equal=0;
...@@ -539,7 +540,7 @@ uchar* arstr(ushort* count, char* str, scfg_t* cfg) ...@@ -539,7 +540,7 @@ uchar* arstr(ushort* count, char* str, scfg_t* cfg)
} }
} }
if(!j) if(!j)
return(nular); /* Save memory */ return((uchar*)nular); /* Save memory */
ar[j++]=AR_NULL; ar[j++]=AR_NULL;
/** DEBUG stuff /** DEBUG stuff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment