summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2012-11-27 22:14:22 +0000
committerdteske <dteske@FreeBSD.org>2012-11-27 22:14:22 +0000
commit72035ea1e4ecb79fbed606f481247c35858c9cbb (patch)
treeccdc4decf9348d6a68410763eb8880289a60a538
parent996ec077c4e14843f09a821e66057b6ca9c5ecc4 (diff)
downloadFreeBSD-src-72035ea1e4ecb79fbed606f481247c35858c9cbb.zip
FreeBSD-src-72035ea1e4ecb79fbed606f481247c35858c9cbb.tar.gz
Allow setting of NULL titles with f_dialog_[back]title().
Approved by: adrian (co-mentor) (implicit)
-rw-r--r--usr.sbin/bsdconfig/share/dialog.subr4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bsdconfig/share/dialog.subr b/usr.sbin/bsdconfig/share/dialog.subr
index e396a44..bf10388 100644
--- a/usr.sbin/bsdconfig/share/dialog.subr
+++ b/usr.sbin/bsdconfig/share/dialog.subr
@@ -92,7 +92,7 @@ f_dialog_title()
{
local new_title="$1"
- if [ "$new_title" ]; then
+ if [ "${1+set}" ]; then
if [ "$USE_XDIALOG" ]; then
_DIALOG_BACKTITLE="$DIALOG_BACKTITLE"
DIALOG_BACKTITLE="$new_title"
@@ -133,7 +133,7 @@ f_dialog_backtitle()
{
local new_backtitle="$1"
- if [ "$new_backtitle" ]; then
+ if [ "${1+set}" ]; then
if [ "$USE_XDIALOG" ]; then
_DIALOG_TITLE="$DIALOG_TITLE"
DIALOG_TITLE="$new_backtitle"
OpenPOWER on IntegriCloud