]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2000-05-01 09:27:20 by doogie]
authordoogie <>
Mon, 1 May 2000 16:27:20 +0000 (08:27 -0800)
committerdoogie <>
Mon, 1 May 2000 16:27:20 +0000 (08:27 -0800)
Fix unitialized value warning.

Debbugs/DBase.pm

index 1fda1eec8c112e033e47031e96de042411efff00..10c4a1d5a16dc204005e418b0128ce2fcda232e8 100644 (file)
@@ -126,7 +126,7 @@ sub OpenFile
            }
        }
        open( $handle, $Globals{ "work-dir" } . $path ) && return $handle;
-       if($new =~ "new") {
+       if(defined($new) && $new =~ "new") {
            my $dir = dirname( $path );
            if ( ! -d $Globals{ "work-dir" } . $dir ) {
                mkpath($Globals{ "work-dir" } . $dir);