rm useless check
This commit is contained in:
parent
ca0df9cdf5
commit
ea31f4c3e3
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue