Browse Source

pipesz: fix dead code [coverity scan]

309                     if (!opt_quiet && n_opt_size > 1)
>>>     CID 378501:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "warnx(dcgettext(NULL, "usin...".
310                             warnx(_("using last specified size"));

Signed-off-by: Karel Zak <kzak@redhat.com>
pull/1694/head
Karel Zak 2 months ago
parent
commit
634446308f
  1. 1
      misc-utils/pipesz.c

1
misc-utils/pipesz.c

@ -272,6 +272,7 @@ int main(int argc, char **argv)
case 's':
sz = strtosize_or_err(optarg, _("invalid size argument"));
opt_size = sz >= INT_MAX ? INT_MAX : (int)sz;
++n_opt_size;
break;
case 'v':
opt_verbose = TRUE;

Loading…
Cancel
Save