1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[gopher] Skip '/'. Refs #33

This commit is contained in:
Witold Filipczyk 2019-05-05 16:18:29 +02:00
parent 3d96b0d7d7
commit 5106b31f6c

View File

@ -285,7 +285,8 @@ init_gopher_connection_info(struct connection *conn)
/* Pick up gopher_entity */ /* Pick up gopher_entity */
if (selectorlen > 1 && selector[1] == '/') { if (selectorlen > 1 && selector[1] == '/') {
entity = *selector++; entity = *selector++;
selectorlen--; ++selector;
selectorlen -= 2;
} }
/* This is probably a hack. It serves as a work around when no entity is /* This is probably a hack. It serves as a work around when no entity is