Author: mladen.turk(a)jboss.com
Date: 2007-09-03 02:47:03 -0400 (Mon, 03 Sep 2007)
New Revision: 964
Modified:
trunk/sight/native/os/windows/utils.c
Log:
Make trim functions return NULL for empty trimmed strings.
Modified: trunk/sight/native/os/windows/utils.c
===================================================================
--- trunk/sight/native/os/windows/utils.c 2007-09-03 06:43:20 UTC (rev 963)
+++ trunk/sight/native/os/windows/utils.c 2007-09-03 06:47:03 UTC (rev 964)
@@ -36,7 +36,7 @@
/* check for empty strings */
if (!s || !*s)
- return s;
+ return NULL;
i = lstrlenW(s) - 1;
while (i >= 0 && (iswspace(s[i]) || (s[i] == L'\r') || (s[i] ==
L'\n')))
s[i--] = L'\0';
Show replies by date