diff --git a/util/platprofctl.c b/util/platprofctl.c index 3ca2a4a..f26abde 100644 --- a/util/platprofctl.c +++ b/util/platprofctl.c @@ -46,7 +46,7 @@ static int set_profile_state(const char *value) FILE *f = fopen(profile_path, "w"); if (!f) { LOG_ERROR("Failed to open file for write %s\n", profile_path); - retval = EXIT_FAILURE; + return EXIT_FAILURE; } if (fprintf(f, "%s\n", value) < 0) {