/*
* Chop the name at this point.
*/
- if (state->end) {
+ if (state->end != NULL) {
*state->end = 0;
}
/* The name cannot have a component of "." */
if (ISDOT(state->name)) {
- if (!state->end) {
+ if (state->end == NULL) {
/* Error code at the end of a pathname. */
return NT_STATUS_OBJECT_NAME_INVALID;
}
}
/* Wildcards never valid within a pathname. */
- if (state->name_has_wildcard && state->end) {
+ if (state->name_has_wildcard && state->end != NULL) {
return NT_STATUS_OBJECT_NAME_INVALID;
}
/*
* Restore the / that we wiped out earlier.
*/
- if (state->end) {
+ if (state->end != NULL) {
*state->end = '/';
}