ref: 09888b185535fa9441accbf7b811974acd6bdeb8
parent: 992fd380a19def81095e9d5fed9b924e97da4145
author: Quentin Rameau <[email protected]>
date: Thu Feb 16 20:33:49 EST 2017
[libc] Make strcat style consistent with the rest
--- a/libc/src/strcat.c
+++ b/libc/src/strcat.c
@@ -5,10 +5,10 @@
char *
strcat(char *dst, const char *src)
{
- char *ret;
+ char *ret = dst;
- for (ret = dst; *dst; ++dst)
- /* nothing */;
+ while (*dst)
+ ++dst;
while (*dst++ = *src++)
/* nothing */;
return ret;