gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r10853: Fix listing the available ex


From: Tomeu Vizoso
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10853: Fix listing the available extensions/plugins
Date: Tue, 28 Apr 2009 10:10:16 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10853
committer: Tomeu Vizoso <address@hidden>
branch nick: gnash
timestamp: Tue 2009-04-28 10:10:16 +0200
message:
  Fix listing the available extensions/plugins
modified:
  libbase/extension.cpp
=== modified file 'libbase/extension.cpp'
--- a/libbase/extension.cpp     2009-02-25 22:33:03 +0000
+++ b/libbase/extension.cpp     2009-04-28 08:10:16 +0000
@@ -216,17 +216,11 @@
             return false;
         }   
         
-        struct dirent *entry = readdir(libdir);
+        struct dirent *entry;
 
-        for (int i = 0; entry > 0; ++i) {
+        while ((entry = readdir(libdir)) != NULL) {
             // We only want shared libraries that end with the suffix, 
otherwise
             // we get all the duplicates.
-            entry = readdir(libdir);
-
-            if (entry <= 0) { // All done
-                continue;
-            }
-
             std::string name(entry->d_name);
 
             // Hidden files.


reply via email to

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