lsunit isn't always set when running _log_sunit, so give it a default value.
authorNathan Straz <nstraz@sgi.com>
Mon, 19 May 2003 20:54:36 +0000 (20:54 +0000)
committerNathan Straz <nstraz@sgi.com>
Mon, 19 May 2003 20:54:36 +0000 (20:54 +0000)
016

diff --git a/016 b/016
index 75de0114edc1eb640f46a8a99adb8b70e835d9ee..49546041e0c1aadffe8282ca9a616fd8943917e9 100755 (executable)
--- a/016
+++ b/016
@@ -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