mode is not set to _mode but rather mode_ptr->name which is a copy of _mode

This commit is contained in:
Scoopta 2020-03-13 12:27:26 -07:00
parent c42ec7676d
commit b2e879cc88

View File

@ -1220,7 +1220,7 @@ static void* load_mode(char* _mode, struct mode* mode_ptr, struct map* props) {
} }
if(mode == NULL && no_entry != NULL && no_entry()) { if(mode == NULL && no_entry != NULL && no_entry()) {
mode = _mode; mode = mode_ptr->name;
} }
for(size_t count = 0; count < arg_count; ++count) { for(size_t count = 0; count < arg_count; ++count) {