From f4da5aceb2545021e1688e0777b26c0c3aa667fb Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Wed, 22 Jan 2014 10:01:45 +0100 Subject: [PATCH] Don't add empty ssh targets. --- source/ssh-dialog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/ssh-dialog.c b/source/ssh-dialog.c index 341345a8..0e84d08e 100644 --- a/source/ssh-dialog.c +++ b/source/ssh-dialog.c @@ -188,6 +188,8 @@ static char ** get_ssh ( ) int found = 0; + if(start == stop) continue; + // This is a nice little penalty, but doable? time will tell. // given num_favorites is max 25. for ( int j = 0; found == 0 && j < num_favorites; j++ ) {