[tracker] libtracker-common: Make libicu/libunistring agree on function prerequisites



commit 44d25fa0f4f82fb2e5ec2460710edad13077d664
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Dec 17 18:06:00 2015 +0100

    libtracker-common: Make libicu/libunistring agree on function prerequisites
    
    We can possibly end up with tracker_parser_unaccent_nfkd_string() called on
    0-length strings. Libunistring already handles/accepts this fine, the libicu
    implementation already is 0-length safe, so have it accept 0-length strings
    as well.

 src/libtracker-common/tracker-parser-libicu.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-common/tracker-parser-libicu.c b/src/libtracker-common/tracker-parser-libicu.c
index 493f864..d6410d3 100644
--- a/src/libtracker-common/tracker-parser-libicu.c
+++ b/src/libtracker-common/tracker-parser-libicu.c
@@ -155,7 +155,6 @@ tracker_parser_unaccent_nfkd_string (gpointer  str,
 
        g_return_val_if_fail (str != NULL, FALSE);
        g_return_val_if_fail (str_length != NULL, FALSE);
-       g_return_val_if_fail (*str_length > 0, FALSE);
 
        word = (UChar *)str;
        word_length = *str_length;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]