Skip to content

Commit

Permalink
mxqd: Move variables into block scope
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Feb 20, 2022
1 parent 25ce092 commit 9f77186
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2727,9 +2727,6 @@ int main(int argc, char *argv[])
static struct timespec poll_interval={20,0}; /* 20 seconds */
siginfo_t siginfo;

_mx_cleanup_free_ char *saved_argv_str = NULL;
_mx_cleanup_free_ char *saved_cwd = NULL;

sigfillset(&all_signals);

sigemptyset(&sigset);
Expand Down Expand Up @@ -2877,6 +2874,8 @@ int main(int argc, char *argv[])
server_close(server);

while (global_sigrestart_cnt) {
_mx_cleanup_free_ char *saved_argv_str = NULL;
_mx_cleanup_free_ char *saved_cwd = NULL;
char **saved_argv;
saved_argv_str = mx_strvec_to_str(argv);
saved_cwd = get_current_dir_name();
Expand Down

0 comments on commit 9f77186

Please sign in to comment.