[Dbconfig-common-changes] [dbconfig-common] r438 - trunk/internal

Sean Finney seanius at alioth.debian.org
Thu Apr 10 16:08:52 UTC 2008


Author: seanius
Date: 2008-04-10 16:08:52 +0000 (Thu, 10 Apr 2008)
New Revision: 438

Modified:
   trunk/internal/common
Log:
use $# instead of $1 to avoid uninitialized variable usage

Modified: trunk/internal/common
===================================================================
--- trunk/internal/common	2008-04-09 21:45:30 UTC (rev 437)
+++ trunk/internal/common	2008-04-10 16:08:52 UTC (rev 438)
@@ -36,7 +36,7 @@
 ## internal sanity check for certain important variables
 ##
 _dbc_sanity_check(){
-	while [ "$1" ]; do
+	while [ $# -ne 0 ]; do
 		case "$1" in
 		"package")
 			if [ -z "$dbc_package" ]; then




More information about the Dbconfig-common-changes mailing list