gnump3d-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnump3d-devel] "Use of uninitialized value"


From: Martin Lohmeier
Subject: Re: [Gnump3d-devel] "Use of uninitialized value"
Date: Wed, 25 May 2005 15:45:05 +0200
User-agent: Debian Thunderbird 1.0.2 (X11/20050331)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zsolt Szabo wrote:
> Hi all!
> 
> When I run gnump3d-index [or when cron runs it], it produces the
> following  errors:
> 
> [quote from console]
> anoftc:~# gnump3d-index
> Use of uninitialized value in numeric eq (==) at /usr/bin/gnump3d-index 
> line 405.
> Use of uninitialized value in numeric eq (==) at /usr/bin/gnump3d-index 
> line 405.
> Use of uninitialized value in numeric eq (==) at /usr/bin/gnump3d-index 
> line 405.
> anoftc:~#
> [quote ends]
> 
> Line 405 in /usr/bin/gnump3d-index is the following:
>  if( $cache{$file}->{"MTIME"} == $fstat[9] ) {
> 
> Inserting the following line seems to solve the problem:
> 
> $cache{$file}->{"MTIME"}="0" unless defined
> $cache{$file}->{"MTIME"};
> 
> So the cache-check IF would look like this:
> 
> [quote from source from line 404]
>         if( exists( $cache{$file} ) ) {
>           $cache{$file}->{"MTIME"}="0" unless defined 
> $cache{$file}->{"MTIME"};
>           if( $cache{$file}->{"MTIME"} == $fstat[9] ) {
>             $skip = 1;
>           }
>         } else {
>           # No cache, build entry manually.
>         }
> [quote ends]
> 
> [quote from console]
> anoftc:~# gnump3d-index
> anoftc:~#
> [quote ends]
> 
> I use DEBIAN SID, and the packaged [apt-get
> installed] GNUMP3d:
> anoftc:~# gnump3d --version
> gnump3d v2.9.3 [CVS Info: gnump3d2 1.93 (2005/
> 04/01)] on Perl v5.008004
> 
> I hope this helps.
> If not, then sorry :)
> 
> Byez
> ZS

Hi Zsolt,

there was a patch against the debian package a few days ago (see
attachment).

by, Martin


- --

Powered by Debian GNU / Linux
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFClIFhOvJj+wS6JuIRAtUdAJ9cwu3vkffmlyzg76c1S895YDJVJACgjKLr
DOKeLO065ZdSKMe6IywKD2I=
=sz0o
-----END PGP SIGNATURE-----
--- /usr/bin/gnump3d-index      2005-05-09 23:02:31.000000000 -0400
+++ gnump3d-index       2005-05-23 14:30:57.000000000 -0400
@@ -402,9 +402,11 @@
          @fstat = stat( $file );
        }
        if( exists( $cache{$file} ) ) {
+            if( exists( $cache{$file}->{"MTIME"} ) ) {
          if( $cache{$file}->{"MTIME"} == $fstat[9] ) {
            $skip = 1;
          }
+            }
        } else {
          # No cache, build entry manually.
        }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]