Silence a GCC warning about an empty if statement.

This commit is contained in:
Dag-Erling Smørgrav 2014-07-11 15:14:23 +00:00 committed by des
parent 18650540d8
commit 7f410bdfd3

View file

@ -66,9 +66,10 @@ oath_key_alloc(void)
key->locked = 1;
} else {
/* openpam_log(PAM_LOG_ERROR, "mmap(): %m"); */
if ((key = calloc(sizeof *key, 1)) == NULL)
if ((key = calloc(sizeof *key, 1)) == NULL) {
/* openpam_log(PAM_LOG_ERROR, "malloc(): %m") */;
}
}
return (key);
}