X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=inline;f=bertos%2Fnet%2Fhttp.c;h=29146d405161d2f379298451a5fb6aeb9995ff52;hb=HEAD;hp=e7ffd7eb6a76858a2cf10a483598e1e953f7ad17;hpb=540dc81aaba32706787f118b9ae05153103f7902;p=bertos.git 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;