This error should never happen, so replace the check with an assert. The check
was anyway broken due to an uninitialized return value.
Reported by Thomas Hindoe Paaboel Andersen <phomes@gmail.com>.
assert(link->state_file);
state = link_state_to_string(link->state);
assert(link->state_file);
state = link_state_to_string(link->state);
- if (!state)
- goto finish;
r = fopen_temporary(link->state_file, &f, &temp_path);
if (r < 0)
r = fopen_temporary(link->state_file, &f, &temp_path);
if (r < 0)