Skip to content

Commit

Permalink
Amend 87647.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87690 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
kalibera committed Feb 5, 2025
1 parent dba06bd commit 2b43a48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/errors.c
Original file line number Diff line number Diff line change
Expand Up @@ -2361,7 +2361,6 @@ R_GetCurrentSrcref(int skip)
}

/* If skip = NA, try current active srcref first. */

if (keep_looking) {
srcref = R_getCurrentSrcref();
if (srcref && !isNull(srcref))
Expand All @@ -2381,9 +2380,10 @@ R_GetCurrentSrcref(int skip)
/* Now get the next srcref. If skip was not NA, don't
keep looking. */
do {
if (!c) break;
srcref = fixBCSrcref(c->srcref, c);
c = c->nextcontext;
} while (keep_looking && c && !(srcref && !isNull(srcref)));
} while (keep_looking && !(srcref && !isNull(srcref)));
if (!srcref)
srcref = R_NilValue;
return srcref;
Expand Down

0 comments on commit 2b43a48

Please sign in to comment.