X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d241dd27df3a32b5477eadb1a9d4897d7fcf76a7..f3300c448f21eb61c08284f1e210bd7766da784e:/projects/rlm_stg/rlm_stg.c?ds=sidebyside diff --git a/projects/rlm_stg/rlm_stg.c b/projects/rlm_stg/rlm_stg.c index 50654593..84df4e7b 100644 --- a/projects/rlm_stg/rlm_stg.c +++ b/projects/rlm_stg/rlm_stg.c @@ -57,9 +57,11 @@ static size_t toVPS(const STG_PAIR* pairs, VALUE_PAIR** vps) while (!emptyPair(pair)) { VALUE_PAIR* vp = pairmake(pair->key, pair->value, T_OP_SET); - pairadd(vps, vp); + if (vp != NULL) { + pairadd(vps, vp); + ++count; + } ++pair; - ++count; } return count;