[Xfce4-commits] <xfce4-mailwatch-plugin:master> Fix running an empty command
Ján SuÄan
noreply at xfce.org
Sat Dec 21 00:54:03 CET 2013
Updating branch refs/heads/master
to db36f97aaca40ec8d52015232e95e3a2f10d295b (commit)
from ba7f4a44da05c6d72f1a2a07f4eea9ebf2b7ddb0 (commit)
commit db36f97aaca40ec8d52015232e95e3a2f10d295b
Author: Ján Sučan <sucan at runbox.com>
Date: Sat Dec 21 00:52:27 2013 +0100
Fix running an empty command
panel-plugin/mailwatch-plugin.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/mailwatch-plugin.c b/panel-plugin/mailwatch-plugin.c
index 067aa59..79d196a 100644
--- a/panel-plugin/mailwatch-plugin.c
+++ b/panel-plugin/mailwatch-plugin.c
@@ -792,7 +792,7 @@ mailwatch_newmsg_command_focusout_cb(GtkWidget *w,
g_free(mwp->new_messages_command);
command = gtk_editable_get_chars(GTK_EDITABLE(w), 0, -1);
- mwp->new_messages_command = g_strdup(command ? command : "");
+ mwp->new_messages_command = g_strdup(command ? command : NULL);
return FALSE;
}
@@ -808,7 +808,7 @@ mailwatch_count_changed_command_focusout_cb(GtkWidget *w,
g_free(mwp->count_changed_command);
command = gtk_editable_get_chars(GTK_EDITABLE(w), 0, -1);
- mwp->count_changed_command = g_strdup(command ? command : "");
+ mwp->count_changed_command = g_strdup(command ? command : NULL);
return FALSE;
}
More information about the Xfce4-commits
mailing list