smol_http

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit d8d67d1123b279d019260c2d41d5330ea3a60017
parent 04529999689faf516d100a77064102fadd44a3b4
Author: Anton Kling <anton@kling.gg>
Date:   Tue, 28 Dec 2021 22:41:09 +0100

"Fixed" the order of '==' checks.

Diffstat:
Msmol_http.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/smol_http.c b/smol_http.c @@ -160,9 +160,9 @@ void connection_handler(int socket_desc) int enter_directory = 0; uint16_t i; for(i = 0;filename[i] && - filename[i] != ' ' && - filename[i] != '\n' && - filename[i] != '\r';i++); + ' ' != filename[i] && + '\n' != filename[i] && + '\r' != filename[i];i++); filename[i] = 0;