mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 20:36:22 +00:00
Ensure instances of auto types are initialized
Follow-up of #1913 Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -4900,13 +4900,11 @@ gboolean
|
||||
cmd_sendfile(ProfWin* window, const char* const command, gchar** args)
|
||||
{
|
||||
jabber_conn_status_t conn_status = connection_get_status();
|
||||
auto_gchar gchar* filename;
|
||||
// expand ~ to $HOME
|
||||
auto_gchar gchar* filename = get_expanded_path(args[0]);
|
||||
char* alt_scheme = NULL;
|
||||
char* alt_fragment = NULL;
|
||||
|
||||
// expand ~ to $HOME
|
||||
filename = get_expanded_path(args[0]);
|
||||
|
||||
if (access(filename, R_OK) != 0) {
|
||||
cons_show_error("Uploading '%s' failed: File not found!", filename);
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user