]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Fix EOF return from wordsplit_finish
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Jan 2026 01:04:58 +0000 (17:04 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 24 Jan 2026 01:38:38 +0000 (17:38 -0800)
* lib/wordsplit.c (wordsplit_finish):
Fix typo caught by -Wzero-as-null-pointer-constant

lib/wordsplit.c

index a777d16a2aa638b39e556b29a1dd74020d2d295b..b1b938b228a8857624a71b9fdf30337d8e399d4a 100644 (file)
@@ -848,7 +848,7 @@ wordsplit_finish (struct wordsplit *wsp)
        }
       else
        {
-         wsp->ws_error = WRDSE_EOF;
+         wsp->ws_errno = WRDSE_EOF;
          return WRDSE_EOF;
        }
       goto again;