summaryrefslogtreecommitdiff
path: root/frontends/gtk/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/gtk/fetch.c')
-rw-r--r--frontends/gtk/fetch.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/frontends/gtk/fetch.c b/frontends/gtk/fetch.c
index e1550ffe8..58bd0b853 100644
--- a/frontends/gtk/fetch.c
+++ b/frontends/gtk/fetch.c
@@ -119,9 +119,7 @@ void gtk_fetch_filetype_init(const char *mimefile)
/* search for the first whitespace char or NUL or
* NL */
- while (*ptr &&
- (!ascii_is_space(*ptr)) &&
- *ptr != '\n') {
+ while (*ptr && (!ascii_is_space(*ptr))) {
ptr++;
}
@@ -146,9 +144,7 @@ void gtk_fetch_filetype_init(const char *mimefile)
/* search for the first whitespace char or
* NUL or NL which is the end of the ext.
*/
- while (*ptr &&
- (!ascii_is_space(*ptr)) &&
- *ptr != '\n') {
+ while (*ptr && (!ascii_is_space(*ptr))) {
ptr++;
}