diff --git a/examples/examples/Database/MySQLExample/.project b/examples/examples/Database/MySQLExample/.project index 7b1879b27..00d16dfa1 100644 --- a/examples/examples/Database/MySQLExample/.project +++ b/examples/examples/Database/MySQLExample/.project @@ -1,9 +1,9 @@ # Gambas Project File 3.0 -# Compiled with Gambas 3.1.0 +# Compiled with Gambas 3.4.0 Title=MySQL Example Startup=modMain Icon=icons/16/Admin.png -Version=3.0.90 +Version=3.4.0 VersionFile=1 Component=gb.image Component=gb.qt4 @@ -22,10 +22,5 @@ SourcePath=/media Maintainer=David Villalobos Cambronero Address=david_villalobos_c@yahoo.com License=General Public License -UseRelease=1 +Packager=1 Systems=autotools -Menus= -Categories= -Groups= -ExtraDependencies= -ExtraFiles= diff --git a/gb.net.curl/src/CFtpClient.c b/gb.net.curl/src/CFtpClient.c index c254c63ff..613f237c4 100644 --- a/gb.net.curl/src/CFtpClient.c +++ b/gb.net.curl/src/CFtpClient.c @@ -170,10 +170,13 @@ static int ftp_exec(void *_object, int what, GB_ARRAY commands) THIS_FTP->commands = commands; GB.Ref(commands); - list = NULL; - for (i = 0; i < GB.Array.Count(commands); i++) - list = curl_slist_append(list, *(char **)GB.Array.Get(commands, i)); - curl_easy_setopt(THIS_CURL, CURLOPT_QUOTE, list); + if (GB.Array.Count(commands)) + { + list = NULL; + for (i = 0; i < GB.Array.Count(commands); i++) + list = curl_slist_append(list, *(char **)GB.Array.Get(commands, i)); + curl_easy_setopt(THIS_CURL, CURLOPT_QUOTE, list); + } } break;