aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-15 23:16:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-16 10:50:05 +0800
commitcae22334fa6bc395ccc421b09e0af94c89297c41 (patch)
tree84881f467c0448db044d8bb3533e044a7152bb2b /shell
parentd37784ed3db20fd74ea4b8d9fdfe58518370cea2 (diff)
downloadgsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.gz
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.tar.zst
gsoc2013-evolution-cae22334fa6bc395ccc421b09e0af94c89297c41.zip
Remove dead assignments found by clang.
Diffstat (limited to 'shell')
-rw-r--r--shell/e-shell-migrate.c2
-rw-r--r--shell/e-shell-switcher.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/e-shell-migrate.c b/shell/e-shell-migrate.c
index 6f7208a593..1186b7934f 100644
--- a/shell/e-shell-migrate.c
+++ b/shell/e-shell-migrate.c
@@ -157,7 +157,7 @@ shell_migrate_remove_dir (const gchar *root,
{
GDir *dir;
const gchar *basename;
- gchar *filename;
+ gchar *filename = NULL;
gint result = -1;
/* Recursively removes a directory and its contents. */
diff --git a/shell/e-shell-switcher.c b/shell/e-shell-switcher.c
index ec4f23ce53..226279e0b5 100644
--- a/shell/e-shell-switcher.c
+++ b/shell/e-shell-switcher.c
@@ -91,7 +91,7 @@ shell_switcher_layout_actions (EShellSwitcher *switcher)
/* If using text buttons, we want to try to have a
* completely filled-in grid, but if we can't, we want
* the odd row to have just a single button. */
- while (num_btns % btns_per_row > 1)
+ while (btns_per_row > 0 && num_btns % btns_per_row > 1)
btns_per_row--;
}