libdl: dlerror return NULL when no error

Updates #2747
This commit is contained in:
Patrick Gauvin
2016-06-26 12:47:28 -04:00
committed by Chris Johns
parent a2a9751823
commit a346408e4e

View File

@@ -132,6 +132,8 @@ dlerror (void)
static char msg[64];
rtems_rtl_get_error (msg, sizeof (msg));
rtems_rtl_clear_error ();
if (msg[0] == '\0')
return NULL;
return msg;
}