projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76c5025
)
Minor fix.
author
Daniele Basile
<asterix@develer.com>
Thu, 19 Jan 2012 14:21:35 +0000
(15:21 +0100)
committer
Daniele Basile
<asterix@develer.com>
Thu, 19 Jan 2012 14:21:35 +0000
(15:21 +0100)
bertos/net/http.c
patch
|
blob
|
history
diff --git
a/bertos/net/http.c
b/bertos/net/http.c
index e7ffd7eb6a76858a2cf10a483598e1e953f7ad17..29146d405161d2f379298451a5fb6aeb9995ff52 100644
(file)
--- 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;