[Pkg-gnupg-commit] [gnupg2] 148/166: gpgscm: Fix calculating the line number.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Mar 16 22:33:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 058c97f9fc485405246b1adfcc905c1891550652
Author: Justus Winter <justus at g10code.com>
Date:   Tue Feb 28 16:17:33 2017 +0100

    gpgscm: Fix calculating the line number.
    
    * tests/gpgscm/scheme.c (opexe_5): Only increment the line number on
    newlines.
    
    Fixes-commit: 7cc57e2c63d0fa97569736419db5c76117e7685b
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 tests/gpgscm/scheme.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/gpgscm/scheme.c b/tests/gpgscm/scheme.c
index 405dee4..0453754 100644
--- a/tests/gpgscm/scheme.c
+++ b/tests/gpgscm/scheme.c
@@ -5045,8 +5045,8 @@ static pointer opexe_5(scheme *sc, enum scheme_opcodes op) {
                int c = inchar(sc);
                if (c != '\n')
                  backchar(sc,c);
-	       port_increment_current_line(sc,
-					   &sc->load_stack[sc->file_i], 1);
+	       else
+		 port_increment_current_line(sc, &sc->load_stack[sc->file_i], 1);
                sc->nesting_stack[sc->file_i]--;
                s_return(sc,reverse_in_place(sc, sc->NIL, sc->args));
           } else if (sc->tok == TOK_DOT) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list