diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-04-26 16:19:31 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-04-27 15:02:00 -0400 |
commit | c039b03590c86f5142c78d616700ef7af7c8a5a8 (patch) | |
tree | 4a6e2da3c2b0aa3e19f39fa7d19b0454dc0d5ea7 /libnautilus-private/nautilus-file-operations.c | |
parent | cc479264e5e12340df0c8ceefab2f44ca289c53b (diff) | |
download | nautilus-c039b03590c86f5142c78d616700ef7af7c8a5a8.tar.gz |
all: fix some issues highlighted by static analysis
Thanks to Jasper for the clang scanner tricks.
Diffstat (limited to 'libnautilus-private/nautilus-file-operations.c')
-rw-r--r-- | libnautilus-private/nautilus-file-operations.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/libnautilus-private/nautilus-file-operations.c b/libnautilus-private/nautilus-file-operations.c index 00326b7b0..0ed15c5fc 100644 --- a/libnautilus-private/nautilus-file-operations.c +++ b/libnautilus-private/nautilus-file-operations.c @@ -2802,13 +2802,13 @@ verify_destination (CommonJob *job, primary = f (_("Error while copying to \"%B\"."), dest); secondary = f (_("The destination is not a folder.")); - response = run_error (job, - primary, - secondary, - NULL, - FALSE, - GTK_STOCK_CANCEL, - NULL); + run_error (job, + primary, + secondary, + NULL, + FALSE, + GTK_STOCK_CANCEL, + NULL); abort_job (job); return; @@ -2866,13 +2866,13 @@ verify_destination (CommonJob *job, primary = f (_("Error while copying to \"%B\"."), dest); secondary = f (_("The destination is read-only.")); - response = run_error (job, - primary, - secondary, - NULL, - FALSE, - GTK_STOCK_CANCEL, - NULL); + run_error (job, + primary, + secondary, + NULL, + FALSE, + GTK_STOCK_CANCEL, + NULL); g_error_free (error); @@ -5351,7 +5351,7 @@ link_file (CopyMoveJob *job, } /* Other error */ - else { + else if (error != NULL) { if (common->skip_all_error) { goto out; } |