mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
install: explicitly return 0 on success
Maybe there is some left-over value stored in r from previous function call. Let's make sure we always return consistent error code when we reach end of the function body. Fixes following crash of test-install, Assertion 'r == 0' failed at src/test/test-install.c:52, function main(). Aborting. [1] 11703 abort (core dumped) ./test-install
This commit is contained in:
parent
9ebdb1e057
commit
77cd2c87a4
@ -2263,7 +2263,7 @@ int unit_file_get_list(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return r;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char* const unit_file_state_table[_UNIT_FILE_STATE_MAX] = {
|
static const char* const unit_file_state_table[_UNIT_FILE_STATE_MAX] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user