Skip to content
Snippets Groups Projects
Commit 583de921 authored by BenceJanosSzabo's avatar BenceJanosSzabo
Browse files

Reverted variable scope change: Do not use a reference to a variable after its scope ended


Change-Id: I5fcead5492fc832ee679cbce341c6609508e0055
Signed-off-by: default avatarBenceJanosSzabo <bence.janos.szabo@ericsson.com>
parent 2bd0e710
No related branches found
No related tags found
No related merge requests found
...@@ -265,9 +265,10 @@ namespace Common { ...@@ -265,9 +265,10 @@ namespace Common {
// borrow location information from the innermost context // borrow location information from the innermost context
Location my_location; Location my_location;
my_location.set_location( *(tail->location) ); my_location.set_location( *(tail->location) );
loc = &my_location; my_location.print_location(stderr);
} else if (loc) {
loc->print_location(stderr);
} }
if (loc) loc->print_location(stderr);
fputs("error: ", stderr); fputs("error: ", stderr);
vfprintf(stderr, fmt, args); vfprintf(stderr, fmt, args);
putc('\n', stderr); putc('\n', stderr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment