Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
Fix crash at end of upgrade if plymouth=FALSE
Browse files Browse the repository at this point in the history
If we try to clean up plymouth when we haven't set it up, it'll crash.
No good. Don't do that.
  • Loading branch information
wgwoods committed Dec 20, 2012
1 parent 42616a9 commit cfdba32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system-upgrade-fedora.c
Expand Up @@ -679,7 +679,8 @@ int main(int argc, char* argv[]) {
retval = EXIT_SUCCESS;
}

plymouth_finish();
if (plymouth)
plymouth_finish();

/* cleanup */
g_debug("cleaning up...");
Expand Down

0 comments on commit cfdba32

Please sign in to comment.