]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chsh: cleanup global_shells usage
authorKarel Zak <kzak@redhat.com>
Mon, 5 Jun 2017 11:29:20 +0000 (13:29 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 5 Jun 2017 11:29:20 +0000 (13:29 +0200)
commit5f032ae4bb6a5ec832289f77727d34cb73cba602
tree5b51e3363fe3923890d60dad063ccd72945fb2a7
parent54373fb9b910f5fe64f1d14a6db36437063b4983
chsh: cleanup global_shells usage

* global variables are always initialized by NULL
* it seems we need it as global variable due to libreadline, then use it as
  global everywhere in the same .c file.

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/chsh.c