Utils/Analysis/Find_Addr.pl: fix wrongly recognizing addresses as being in codec or plugin space when their addresses were invalid


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22379 a1c6a512-1295-4272-9138-f99709370657
diff --git a/utils/analysis/find_addr.pl b/utils/analysis/find_addr.pl
index 0e8ef28..dd42ef6 100755
--- a/utils/analysis/find_addr.pl
+++ b/utils/analysis/find_addr.pl
@@ -195,12 +195,13 @@
     }
     close MAPFILE;
 
-    if($lookaddr >= $codec_addr && $lookaddr < $plugin_addr)
+    if($lookaddr >= $codec_addr && $lookaddr < $plugin_addr
+       && $codec_addr != 0)
     {
         # look for codec
         %match = dynamic_space("codec", \@codecs);
     }
-    elsif($lookaddr >= $plugin_addr)
+    elsif($lookaddr >= $plugin_addr && $plugin_addr != 0)
     {
         # look for plugin
         %match = dynamic_space("plugin", \@plugins);
@@ -268,4 +269,4 @@
 Don't forget to build with -g !
 EOF
 ;
-}
\ No newline at end of file
+}