Well, asserting workdir isn't much use after you've added 1 to it; if strchr() returned NULL, this assert would still succeed ! `assert(workdir - 1 && workdir[0] == '/');`