lsunit isn't always set when running _log_sunit, so give it a default value.

This commit is contained in:
Nathan Straz
2003-05-19 20:54:36 +00:00
parent c1ef92a938
commit bbb3e07bed
+2 -2
View File
@@ -5,7 +5,7 @@
# test end of log overwrite bug #796141
#
#-----------------------------------------------------------------------
# Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
# Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2 of the GNU General Public License as
@@ -139,7 +139,7 @@ _log_head()
_log_sunit()
{
if [ $lsunit -eq 0 ]; then
if [ ${lsunit:-0} -eq 0 ]; then
echo $dbsize
else
expr $lsunit \* $dbsize