projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7aa2e37
)
Minor simplification in safe_strcmp_filename().
author
Tor Lillqvist
<tml@src.gnome.org>
Mon, 1 Aug 2005 19:25:37 +0000
(19:25 +0000)
committer
Tor Lillqvist
<tml@src.gnome.org>
Mon, 1 Aug 2005 19:25:37 +0000
(19:25 +0000)
tests/uri-test.c
patch
|
blob
|
history
diff --git
a/tests/uri-test.c
b/tests/uri-test.c
index
0ecfda9
..
c0f21b0
100644
(file)
--- a/
tests/uri-test.c
+++ b/
tests/uri-test.c
@@
-317,10
+317,8
@@
safe_strcmp_filename (const gchar *a, const gchar *b)
#ifndef G_OS_WIN32
return safe_strcmp (a, b);
#else
- if (!a)
- return safe_strcmp ("", b);
- else if (!b)
- return safe_strcmp (a, "");
+ if (!a || !b)
+ return safe_strcmp (a, b);
else
{
while (*a && *b)