rm useless check

This commit is contained in:
Daniel Micay 2012-10-08 11:50:40 -04:00
parent ca0df9cdf5
commit ea31f4c3e3
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ static void launch_url(const char *text, search_panel_info *info) {
char *end; char *end;
errno = 0; errno = 0;
unsigned long id = strtoul(token, &end, 10); unsigned long id = strtoul(token, &end, 10);
if (!errno && end != text && id && id <= info->url_list.size()) { if (!errno && id && id <= info->url_list.size()) {
launch_browser(info->url_list[id - 1].url.get()); launch_browser(info->url_list[id - 1].url.get());
} else { } else {
g_printerr("url hint invalid: %s\n", token); g_printerr("url hint invalid: %s\n", token);