[Xfce4-commits] [apps/xfce4-terminal] 01/01: Remove another redundant check against NULL
noreply at xfce.org
noreply at xfce.org
Tue Jan 8 16:34:42 CET 2019
This is an automated email from the git hooks/post-receive script.
f 2 4 0 4 p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-terminal.
commit 1a3c93ececb164de623355ac6d7dba7af3646534
Author: Igor <f2404 at yandex.ru>
Date: Tue Jan 8 10:34:14 2019 -0500
Remove another redundant check against NULL
Found with PVS-Studio.
---
terminal/terminal-widget.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/terminal/terminal-widget.c b/terminal/terminal-widget.c
index 951fa45..11553af 100644
--- a/terminal/terminal-widget.c
+++ b/terminal/terminal-widget.c
@@ -472,7 +472,7 @@ terminal_widget_drag_data_received (GtkWidget *widget,
text = (gchar *) gtk_selection_data_get_text (selection_data);
if (G_LIKELY (text != NULL))
{
- if (G_LIKELY (IS_STRING (text)))
+ if (G_LIKELY (*text != '\0'))
vte_terminal_feed_child (VTE_TERMINAL (widget), text, strlen (text));
g_free (text);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list