diff --git a/qse/lib/awk/parse.c b/qse/lib/awk/parse.c index eb49d69d..919d4e6b 100644 --- a/qse/lib/awk/parse.c +++ b/qse/lib/awk/parse.c @@ -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 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) { diff --git a/qse/lib/awk/std.c b/qse/lib/awk/std.c index cd90771a..ca3dd986 100644 --- a/qse/lib/awk/std.c +++ b/qse/lib/awk/std.c @@ -2416,6 +2416,7 @@ static ioattr_t* find_or_make_ioattr ( if (pair == QSE_NULL) { qse_awk_rtx_seterrnum (rtx, QSE_AWK_ENOMEM, QSE_NULL); + return QSE_NULL; } }