aboutsummaryrefslogtreecommitdiff
path: root/src/util_rt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util_rt.c')
-rw-r--r--src/util_rt.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/util_rt.c b/src/util_rt.c
index 6d44f52..52ea0cf 100644
--- a/src/util_rt.c
+++ b/src/util_rt.c
@@ -99,13 +99,7 @@ size_t prne_getpagesize (void) {
}
bool prne_nstreq (const char *a, const char *b) {
- if (a == NULL && b == NULL) {
- return true;
- }
- if (a == NULL || b == NULL) {
- return false;
- }
- return strcmp(a, b) == 0;
+ return strcmp(a == NULL ? "" : a, b == NULL ? "" : b) == 0;
}
size_t prne_nstrlen (const char *s) {