Fixes for building spread-sheet-widget as part of the build.
[pspp] / results2html
index 1e8ea802226110c44f73f6b883ddd2b288e2bbdd..988b1e26724566a60c810a330d7be6ac93ba86c2 100755 (executable)
@@ -80,7 +80,7 @@ while (<LOG>) {
            $p{HREF} = $href;
            $p{LN} = $ln;
            push (@products, \%p);
-           push (@{$steps[$#steps]{CHILDREN}}, \%p);
+           push (@{$steps[$#steps]{CHILDREN}}, \%p) if @steps;
 
            if (defined ($name) && $name eq 'source distribution') {
                open (DIST, '-|', "zcat $product | tar tf -");