[tracker] Fixed src/libtracker-common/tracker-config coverity failures



commit e6bd0515e557b230bc70ae03d3e204824d3550c1
Author: Martyn Russell <martyn imendio com>
Date:   Wed May 13 15:13:14 2009 +0100

    Fixed src/libtracker-common/tracker-config coverity failures
---
 src/libtracker-common/tracker-config.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/libtracker-common/tracker-config.c b/src/libtracker-common/tracker-config.c
index 1745480..3721124 100644
--- a/src/libtracker-common/tracker-config.c
+++ b/src/libtracker-common/tracker-config.c
@@ -2151,7 +2151,7 @@ tracker_config_set_language (TrackerConfig *config,
 
 	/* Validate language */
 	use_default |= !value;
-	use_default |= strlen (value) < 2;
+	use_default |= value && strlen (value) < 2;
 	use_default |= !tracker_language_check_exists (value);
 
 	if (use_default) {



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