X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/65a51d11c64daa4df3d4388df60bb4efc3e67e14..ff0c2d8d54cb2bee245d37164f9655f0c4d5bffb:/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