Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: fusl/src/network/dn_skipname.c

Issue 1581513002: Fix dangling-else warnings in fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« fusl/src/ctype/towctrans.c ('K') | « fusl/src/ctype/towctrans.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/network/dn_skipname.c
diff --git a/fusl/src/network/dn_skipname.c b/fusl/src/network/dn_skipname.c
index d54c2e5d04d941937743a0021c106ffd5afc34da..86999fc51e846fadfbec193767451c751be08b2e 100644
--- a/fusl/src/network/dn_skipname.c
+++ b/fusl/src/network/dn_skipname.c
@@ -5,8 +5,9 @@ int dn_skipname(const unsigned char *s, const unsigned char *end)
const unsigned char *p;
for (p=s; p<end; p++)
if (!*p) return p-s+1;
- else if (*p>=192)
+ else if (*p>=192) {
if (p+1<end) return p-s+2;
else break;
+ }
viettrungluu 2016/01/12 16:47:50 Ditto here. Though now I'm betting on rietveld fai
return -1;
}
« fusl/src/ctype/towctrans.c ('K') | « fusl/src/ctype/towctrans.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698