1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

cleanup: reoder rstatus init

In all error paths always initialize *rstatus.
This commit is contained in:
Zdenek Kabelac 2015-11-08 17:18:23 +01:00
parent b1dab26be0
commit 22e19cb354

View File

@ -53,14 +53,14 @@ int exec_cmd(struct cmd_context *cmd, const char *const argv[],
int status;
char buf[PATH_MAX * 2];
if (rstatus)
*rstatus = -1;
if (!argv[0]) {
log_error(INTERNAL_ERROR "Missing command.");
return 0;
}
if (rstatus)
*rstatus = -1;
if (sync_needed)
/* Flush ops and reset dm cookie */
if (!sync_local_dev_names(cmd)) {