[gnome-bluetooth] Remove unneeded NULL check
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] Remove unneeded NULL check
- Date: Sat, 4 Sep 2010 17:03:53 +0000 (UTC)
commit 0dfa1a40328a73abd4c6c15e9e09c09e81069ff8
Author: Bastien Nocera <hadess hadess net>
Date: Sat Sep 4 17:56:16 2010 +0100
Remove unneeded NULL check
sendto/nautilus-sendto-plugin.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sendto/nautilus-sendto-plugin.c b/sendto/nautilus-sendto-plugin.c
index a73f3a7..97d13f9 100644
--- a/sendto/nautilus-sendto-plugin.c
+++ b/sendto/nautilus-sendto-plugin.c
@@ -60,7 +60,7 @@ set_last_used_device (void)
bdaddr = g_settings_get_string (settings, PREF_LAST_USED);
g_object_unref (settings);
- if (bdaddr != NULL && *bdaddr != '\0') {
+ if (*bdaddr != '\0') {
g_object_set (G_OBJECT (combo), "device", bdaddr, NULL);
} else {
g_object_set (G_OBJECT (combo), "device", BLUETOOTH_CHOOSER_COMBO_FIRST_DEVICE, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]