From: Daniele Basile Date: Thu, 19 Jan 2012 14:21:35 +0000 (+0100) Subject: Minor fix. X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=commitdiff_plain;h=fb5863ca8d0db3ff2e84721f7c902b031157ebb0 Minor fix. --- diff --git a/bertos/net/http.c b/bertos/net/http.c index e7ffd7eb..29146d40 100644 --- a/bertos/net/http.c +++ b/bertos/net/http.c @@ -221,7 +221,7 @@ void http_getPageName(const char *recv_buf, size_t recv_len, char *page_name, si INLINE const char *get_ext(const char *name) { const char *ext = strstr(name, "."); - if((ext != NULL) && ((ext + 1) != '\0')) + if(ext != NULL && ext[1] != '\0') return (ext + 1); return NULL;