Skip to content

Commit

Permalink
* radsecproxy.c (createpidfile): Don't use r uninitialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Nordberg committed May 28, 2010
1 parent 2232f96 commit 43c391d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radsecproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -3161,7 +3161,7 @@ void *sighandler(void *arg) {
}

int createpidfile(const char *pidfile) {
int r;
int r = 0;
FILE *f = fopen(pidfile, "w");
if (f)
r = fprintf(f, "%ld\n", (long) getpid());
Expand Down

0 comments on commit 43c391d

Please sign in to comment.