summaryrefslogtreecommitdiff
path: root/embed/ephy-download.c
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2019-11-17 09:14:51 -0600
committerMichael Catanzaro <mcatanzaro@gnome.org>2019-11-17 11:51:55 -0600
commitc297cb81e94b85892f9a3055b95b2122f687b6b7 (patch)
treed66aedca2d576c3df876e29b7b242baa15078c57 /embed/ephy-download.c
parent1cc21ba752898937b582a9fd5920eaf2d5ed29fb (diff)
downloadepiphany-c297cb81e94b85892f9a3055b95b2122f687b6b7.tar.gz
download: fix cppcheck warnings
Here we have an unused instance member variable and a redundant condition.
Diffstat (limited to 'embed/ephy-download.c')
-rw-r--r--embed/ephy-download.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/embed/ephy-download.c b/embed/ephy-download.c
index 8bc6094b9..2a451bb51 100644
--- a/embed/ephy-download.c
+++ b/embed/ephy-download.c
@@ -41,7 +41,6 @@ struct _EphyDownload {
WebKitDownload *download;
- char *destination;
char *content_type;
gboolean show_notification;
@@ -697,7 +696,7 @@ download_created_destination_cb (WebKitDownload *wk_download,
}
if (!download->content_type ||
- (download->content_type && !g_content_type_equals (download->content_type, content_type))) {
+ !g_content_type_equals (download->content_type, content_type)) {
g_free (download->content_type);
download->content_type = content_type;
g_object_notify_by_pspec (G_OBJECT (download), obj_properties[PROP_CONTENT_TYPE]);