String in your Colon
by in CodeSOD on 2024-09-18Anders sends us an example which isn't precisely a WTF. It's just C handling C strings. Which, I guess, when I say it that way, is a WTF.
while(modPath != NULL) {
p = strchr(modPath, ':');
if(p != NULL) {
*p++ = '\0';
}
dvModpathCreate(utSymCreate(modPath));
modPath = p;
} while(modPath != NULL);