mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-08-25 14:41:46 +02:00
Reduce scope of fname and message
This commit is contained in:
parent
ffa7355299
commit
ebed18a205
@ -627,10 +627,10 @@ qmckl_exit_code
|
||||
qmckl_check(qmckl_context context, qmckl_exit_code rc)
|
||||
{
|
||||
|
||||
char fname[QMCKL_MAX_FUN_LEN];
|
||||
char message[QMCKL_MAX_MSG_LEN];
|
||||
|
||||
if (rc != QMCKL_SUCCESS) {
|
||||
char fname[QMCKL_MAX_FUN_LEN];
|
||||
char message[QMCKL_MAX_MSG_LEN];
|
||||
|
||||
fprintf(stderr, "===========\nQMCKL ERROR\n%s\n", qmckl_string_of_error(rc));
|
||||
qmckl_get_error(context, &rc, fname, message);
|
||||
fprintf(stderr, "Function: %s\nMessage: %s\n===========\n", fname, message);
|
||||
|
Loading…
Reference in New Issue
Block a user