X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/65a51d11c64daa4df3d4388df60bb4efc3e67e14..5e4900a6f10a184153e12266db4d46a695d62b49:/projects/rlm_stg/stgpair.h diff --git a/projects/rlm_stg/stgpair.h b/projects/rlm_stg/stgpair.h index dba9e3eb..e82c6672 100644 --- a/projects/rlm_stg/stgpair.h +++ b/projects/rlm_stg/stgpair.h @@ -23,7 +23,7 @@ typedef struct STG_RESULT { inline int emptyPair(const STG_PAIR* pair) { - return pair != NULL && pair->key[0] != '\0' && pair->value[0] != '\0'; + return pair == NULL || pair->key[0] == '\0' || pair->value[0] == '\0'; } #ifdef __cplusplus