[easytag] Remove dead code in et_browser_label_set_text()
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Remove dead code in et_browser_label_set_text()
- Date: Mon, 15 Sep 2014 19:41:06 +0000 (UTC)
commit b8c4707f7ffd4c67615c30f6073f15b0693fe491
Author: David King <amigadave amigadave com>
Date: Mon Sep 15 20:40:05 2014 +0100
Remove dead code in et_browser_label_set_text()
Found with Coverity (CID 1238690).
src/browser.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/browser.c b/src/browser.c
index 8a02d56..b77a8e3 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -625,11 +625,11 @@ et_browser_label_set_text (EtBrowser *self, const gchar *text)
EtBrowserPrivate *priv;
g_return_if_fail (ET_BROWSER (self));
+ g_return_if_fail (text != NULL);
priv = et_browser_get_instance_private (self);
- if (priv->label && text)
- gtk_label_set_text (GTK_LABEL (priv->label), text ? text : "");
+ gtk_label_set_text (GTK_LABEL (priv->label), text);
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]