Minor fix.
[bertos.git] / bertos / net / http.c
index e7ffd7eb6a76858a2cf10a483598e1e953f7ad17..29146d405161d2f379298451a5fb6aeb9995ff52 100644 (file)
@@ -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;