From 564b66968bd4eec0d342a3925743e7e5b16e6497 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 18 May 2014 10:12:50 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsserver/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libmdsserver/macros.h') diff --git a/src/libmdsserver/macros.h b/src/libmdsserver/macros.h index 95f705f..3f7b831 100644 --- a/src/libmdsserver/macros.h +++ b/src/libmdsserver/macros.h @@ -211,7 +211,7 @@ * @return :int Whether the strings are equal */ #define strequals(a, b) \ - (strcmp(a, b) == 0) + ((a == b) || (strcmp(a, b) == 0)) /** -- cgit v1.2.3-70-g09d2