diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-04-27 10:36:08 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-04-27 10:36:08 +0000 |
| commit | 3d15149f5d02339fa5d6a9ec35ef067791f772ef (patch) | |
| tree | 6fdd2013d033f6d809388d6bc348784a8461b2ae /src/libenvexec | |
| parent | 6348137adc2e0d2914339e760dbde1814d44b109 (diff) | |
| download | skalibs-3d15149f5d02339fa5d6a9ec35ef067791f772ef.tar.gz | |
Clarity fix
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libenvexec')
| -rw-r--r-- | src/libenvexec/envdir_noclamp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libenvexec/envdir_noclamp.c b/src/libenvexec/envdir_noclamp.c index f0e6796..09b52f2 100644 --- a/src/libenvexec/envdir_noclamp.c +++ b/src/libenvexec/envdir_noclamp.c @@ -52,7 +52,7 @@ int envdir_internal_noclamp (char const *path, stralloc *modifs, unsigned int op { if (!slurp(modifs, fd)) goto errfd ; if (modifs->len == pos) modifs->len = pos - 1 ; - if (!(options & SKALIBS_ENVDIR_NOCHOMP) && (modifs->s[modifs->len - 1] == '\n')) modifs->len-- ; + else if (!(options & SKALIBS_ENVDIR_NOCHOMP) && modifs->s[modifs->len - 1] == '\n') modifs->len-- ; } else { |
