Commit 0d0bbb43 authored by Antenore Gatta's avatar Antenore Gatta

Cmd can be empty, not only NULL

parent 235df197
......@@ -84,7 +84,8 @@ GtkDialog* remmina_plugin_cmdexec_new(RemminaFile* remminafile, const char *remm
}
cmd = g_string_free(cmd_str, FALSE);
if (cmd != NULL) {
if (*cmd != 0) {
//if (cmd != NULL) {
pcspinner = g_new(PCon_Spinner, 1);
builder = remmina_public_gtk_builder_new_from_file("remmina_spinner.glade");
......
......@@ -32,6 +32,11 @@
*
*/
/**
* @file: remmina_utils.h
* General utility functions, non-GTK related.
*/
#pragma once
G_BEGIN_DECLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment