summaryrefslogtreecommitdiff
path: root/frontends/gtk
diff options
context:
space:
mode:
authorbrabo <brabo@cryptolab.net>2019-06-02 14:37:40 +0200
committerMichael Drake <michael.drake@codethink.co.uk>2019-08-01 10:42:08 +0100
commitba9f5f8ef0ac7a1c6bb6dbfee63006a44902ca6d (patch)
treeb95cc17193156e571b9a2b1b6eeaed060fa79e6c /frontends/gtk
parentc90bfb23adf10c0497b120a868df2d9bb8cafd86 (diff)
downloadnetsurf-ba9f5f8ef0ac7a1c6bb6dbfee63006a44902ca6d.tar.gz
netsurf-ba9f5f8ef0ac7a1c6bb6dbfee63006a44902ca6d.tar.bz2
gtk/fetch.c & monkey/filetype.c: ascii_is_space already checks for newline.
Diffstat (limited to 'frontends/gtk')
-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++;
}