diff options
Diffstat (limited to 'camel/string-utils.c')
-rw-r--r-- | camel/string-utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/string-utils.c b/camel/string-utils.c index 757a907190..1f6d156d03 100644 --- a/camel/string-utils.c +++ b/camel/string-utils.c @@ -228,7 +228,8 @@ string_trim (gchar *string, const gchar *trim_chars, StringTrimOption options) g_return_if_fail (string); length = strlen (string); - g_return_if_fail (length > 0); + if (length==0) + return; first_ok = 0; last_ok = length - 1; |