summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2014-12-15 14:21:44 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2014-12-15 14:32:42 -0500
commit5cda4c1eb523ed65311ac17dfe42c752772a316d (patch)
tree53fd4fb5fd8e9ff869252de1a9c20847c4f862cf /src/lib
parentc970e787d606011f07ac0d1a56e16baa5a53e57d (diff)
eina_streq should immediately return true if both pointers are the same
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/eina/eina_inline_str.x1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eina/eina_inline_str.x b/src/lib/eina/eina_inline_str.x
index 451f35fc11..537aafa096 100644
--- a/src/lib/eina/eina_inline_str.x
+++ b/src/lib/eina/eina_inline_str.x
@@ -94,6 +94,7 @@ eina_streq(const char *a, const char *b)
94 if ((!a) && (!b)) return EINA_TRUE; 94 if ((!a) && (!b)) return EINA_TRUE;
95 if (!a) return EINA_FALSE; 95 if (!a) return EINA_FALSE;
96 if (!b) return EINA_FALSE; 96 if (!b) return EINA_FALSE;
97 if (a == b) return EINA_TRUE;
97 return !strcmp(a, b); 98 return !strcmp(a, b);
98} 99}
99 100