aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-18 10:12:50 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-18 10:12:50 +0200
commit564b66968bd4eec0d342a3925743e7e5b16e6497 (patch)
treebfaacd236a0ac93f968423909377828b441a1172 /src
parentreduce code complexity (diff)
downloadmds-564b66968bd4eec0d342a3925743e7e5b16e6497.tar.gz
mds-564b66968bd4eec0d342a3925743e7e5b16e6497.tar.bz2
mds-564b66968bd4eec0d342a3925743e7e5b16e6497.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/libmdsserver/macros.h2
1 files changed, 1 insertions, 1 deletions
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))
/**