We never use the character pointer once we've advanced it past the
slash, so don't bother doing the work of advancing it.
Caught by clang-analyzer
Change-Id: I8ea561d6756685a13892f0635fa2e19b3f1233ab
Reviewed-on: http://gerrit.openafs.org/9171
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
*/
strncpy(parent_dir, truename, bp - truename);
parent_dir[bp - truename] = 0;
- bp++; /*Skip the slash */
} else {
/*
* No slash appears in the given file name. Set parent_dir to the current
* directory, and the last component as the given name.
*/
strcpy(parent_dir, ".");
- bp = truename;
}
return 1; /* found it */