Hoist initialization of _nc_progname to start of main()
authortb <tb@openbsd.org>
Tue, 22 Jun 2021 18:32:24 +0000 (18:32 +0000)
committertb <tb@openbsd.org>
Tue, 22 Jun 2021 18:32:24 +0000 (18:32 +0000)
commit4f61ed84834fe717dc7a562d725d9e7234b51965
treeee0057d6f5d49c9b0c9f693a2d0429feb00f7fdf
parentd0fc3bb68efd6c434b4053cd7adb29023cbec341
Hoist initialization of _nc_progname to start of main()

This way early calls to err(), failed() and usage() show "reset"
instead of "tset" if the program was invoked as reset(1).

Issue noted by jmc
ok kn
usr.bin/tset/tset.c