[PATCH] do not test for the address of an object which cannot be null

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] do not test for the address of an object which cannot be null

Samuel Tardieu
2008-10-07  Samuel Tardieu  <[hidden email]>

        * ltdl.c (try_dlopen): sys_search_path cannot be null as
        it is defined as an array.
---
 lib-src/ChangeLog |    5 +++++
 lib-src/ltdl.c    |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index e6e887e..4f40f6b 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-07  Samuel Tardieu  <[hidden email]>
+
+ * ltdl.c (try_dlopen): sys_search_path cannot be null as
+ it is defined as an array.
+
 2008-09-22  Paolo Bonzini  <[hidden email]>
 
  * getaddrinfo.c: Fix for win32.
diff --git a/lib-src/ltdl.c b/lib-src/ltdl.c
index 56f05bc..f1fd47c 100644
--- a/lib-src/ltdl.c
+++ b/lib-src/ltdl.c
@@ -3174,7 +3174,7 @@ try_dlopen (phandle, filename)
     }
 #endif
 #ifdef LTDL_SYSSEARCHPATH
-  if (!file && sys_search_path)
+  if (!file)
     {
       file = find_file (sys_search_path, base_name, &dir);
     }



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] do not test for the address of an object which cannot be null

Paolo Bonzini-2
Samuel Tardieu wrote:
> 2008-10-07  Samuel Tardieu  <[hidden email]>
>
> * ltdl.c (try_dlopen): sys_search_path cannot be null as
> it is defined as an array.

Applied, thanks.

Paolo


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk