dtgreet: Do not crash if LANG is not set in the environment.
authorPascal Stumpf <Pascal.Stumpf@cubes.de>
Tue, 20 Nov 2012 18:42:33 +0000 (19:42 +0100)
committerJon Trulson <jon@radscan.com>
Wed, 21 Nov 2012 00:17:29 +0000 (17:17 -0700)
commit76c874b068138cb16ed42654ada923d4335bb756
tree67be75d4174ae9e8d187c103d012fdefeaa72de8
parent0e5560cee4561b4421deec9db8e314d045bbd91f
dtgreet: Do not crash if LANG is not set in the environment.

In that case, catopen() will have never been called, and we'd feed 0 as the
first argument to catgets().  This crashes, at least on OpenBSD.
cde/programs/dtlogin/vgutil.c