[tracker] Fixed src/libtracker-common/tracker-config coverity failures
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker] Fixed src/libtracker-common/tracker-config coverity failures
- Date: Wed, 13 May 2009 12:10:18 -0400 (EDT)
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]