[gnome-settings-daemon/gnome-3-2] daemon: Remove useless NULL check
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-2] daemon: Remove useless NULL check
- Date: Thu, 3 Nov 2011 11:15:58 +0000 (UTC)
commit 78c0b3a3f332819479dd6977d61e3c5354997b88
Author: Christian Persch <chpe gnome org>
Date: Wed Nov 2 14:43:56 2011 +0100
daemon: Remove useless NULL check
g_settings_get_string() returns non-NULL strings.
Bug #663239.
gnome-settings-daemon/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-settings-daemon/main.c b/gnome-settings-daemon/main.c
index c5ec88d..651497a 100644
--- a/gnome-settings-daemon/main.c
+++ b/gnome-settings-daemon/main.c
@@ -207,7 +207,7 @@ set_locale (GDBusProxy *proxy)
/* Set locale environment */
locale_settings = g_settings_new ("org.gnome.system.locale");
region = g_settings_get_string (locale_settings, "region");
- if (region && region[0]) {
+ if (region[0]) {
/* Only set the locale settings if the user has ever customized them */
set_session_env (proxy, "LC_TIME", region);
set_session_env (proxy, "LC_NUMERIC", region);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]