minor code fix

This commit is contained in:
hyung-hwan 2019-12-14 15:23:45 +00:00
parent 77f3be0f7a
commit 9d6c107746
2 changed files with 2 additions and 1 deletions

View File

@ -437,7 +437,7 @@ static global_t gtab[] =
#define SETERR_ARG(awk,code,ep,el) SETERR_ARG_LOC(awk,code,ep,el,QSE_NULL) #define SETERR_ARG(awk,code,ep,el) SETERR_ARG_LOC(awk,code,ep,el,QSE_NULL)
#define ADJERR_LOC(rtx,l) do { (awk)->errinf.loc = *(l); } while (0) #define ADJERR_LOC(awk,l) do { (awk)->errinf.loc = *(l); } while (0)
static QSE_INLINE int is_plain_var (qse_awk_nde_t* nde) static QSE_INLINE int is_plain_var (qse_awk_nde_t* nde)
{ {

View File

@ -2416,6 +2416,7 @@ static ioattr_t* find_or_make_ioattr (
if (pair == QSE_NULL) if (pair == QSE_NULL)
{ {
qse_awk_rtx_seterrnum (rtx, QSE_AWK_ENOMEM, QSE_NULL); qse_awk_rtx_seterrnum (rtx, QSE_AWK_ENOMEM, QSE_NULL);
return QSE_NULL;
} }
} }