+2007-09-05 Eric Blake <ebb9@byu.net>
+
+ * libltdl/ltdl.c (lt_dlcaller_get_data): Work even when no caller
+ has set data.
+
2007-09-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* NEWS: Update.
LT_DLMUTEX_LOCK ();
/* Locate the index of the element with a matching KEY. */
- {
- int i;
- for (i = 0; handle->caller_data[i].key; ++i)
- {
- if (handle->caller_data[i].key == key)
- {
- result = handle->caller_data[i].data;
- break;
- }
- }
- }
+ if (handle->caller_data)
+ {
+ int i;
+ for (i = 0; handle->caller_data[i].key; ++i)
+ {
+ if (handle->caller_data[i].key == key)
+ {
+ result = handle->caller_data[i].data;
+ break;
+ }
+ }
+ }
LT_DLMUTEX_UNLOCK ();