]> git.ipfire.org Git - thirdparty/coreutils.git/commit
env: remove asserts
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Mar 2021 21:06:26 +0000 (14:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 26 Mar 2021 22:17:28 +0000 (15:17 -0700)
commit52f11d8b7ce886fd85b933eac58a62ee90ec63ce
treec1ca3ef642992dce94d52aac46a4cc32ee97affd
parent6c4efdc0f51c8e253f16da2ec60cdf647bec3c06
env: remove asserts

The assertions didn’t help catch the most recent bug which
was in their area, and kind of get in the way.
* src/env.c: Do not include <assert.h>, and remove all assertions.
These seem to have been put in to pacify gcov, but surely there’s
a better way.
(escape_char): Pacify GCC with 'assume' instead.
src/env.c