From: Alois Schlögl <alois.schloegl@gmail.com>
Subject: Correctly handle the case of an empty second argument to var()

Origin: upstream, http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/extra/NaN/inst/var.m?r1=6294&r2=6295&
Bug: https://savannah.gnu.org/bugs/index.php?30905
Bug-Debian: http://bugs.debian.org/594906
--- a/inst/var.m
+++ b/inst/var.m
@@ -72,6 +72,10 @@
 	return;
 end; 	
 
+if isempty(opt),
+	opt = 0;  
+end;
+
 if isempty(DIM), 
         DIM=min(find(size(x)>1));
         if isempty(DIM), DIM=1; end;
