diff options
author | Alan Fitton <alan@eth0.org.uk> | 2012-08-13 07:23:52 +0100 |
---|---|---|
committer | Alan Fitton <alan@eth0.org.uk> | 2012-08-13 07:23:52 +0100 |
commit | 189a7111324b5076d2414a83d237f41156d95e2f (patch) | |
tree | 00b928d36a083045b023ca7556dd93983922a8d0 /src/trg-main-window.c | |
parent | 20c5f5f3c2c9e2f2f415003dc3af92ac4dffae81 (diff) |
fix a possible and rare NULL ptr dereference in an abrt crash report I got, run GTK init before converting command line arguments to hopefully avoid GTK/glib debugging flags being passed as torrent filenames.
Diffstat (limited to 'src/trg-main-window.c')
-rw-r--r-- | src/trg-main-window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trg-main-window.c b/src/trg-main-window.c index 3020b3d..3691828 100644 --- a/src/trg-main-window.c +++ b/src/trg-main-window.c @@ -306,7 +306,7 @@ update_selected_torrent_notebook(TrgMainWindow * win, gint mode, gint64 id) trg_peers_model_update(priv->peersModel, TRG_TREE_VIEW(priv->peersTreeView), trg_client_get_serial(client), t, mode); - } else if (id < 0) { + } else { trg_main_window_torrent_scrub(win); } |