summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <van.freenix@gmail.com>2014-07-05 15:13:51 +0800
committerChris Johns <chrisj@rtems.org>2014-07-12 10:37:16 +1000
commit5a3239d6e9fdb2f9d62d43cf65ab6706cf69338a (patch)
tree5e6c571b2e7e055b9b7604aa1df1296c92a6d20e
parent3baa6851dea54ae4950a3f56ce73b0a7721e9ea6 (diff)
Fix colon problem
When loading an elf/rap object file from an archive file, error occurs with msg : file not found. This patch fix it.
-rw-r--r--rtl-obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtl-obj.c b/rtl-obj.c
index 23ed582..7e20f46 100644
--- a/rtl-obj.c
+++ b/rtl-obj.c
@@ -130,7 +130,7 @@ rtems_rtl_obj_parse_name (rtems_rtl_obj_t* obj, const char* name)
*/
end = name + strlen (name);
colon = strrchr (name, ':');
- if (colon == NULL || colon < strrchr(name, '/'));
+ if (colon == NULL || colon < strrchr(name, '/'))
colon = end;
oname = rtems_rtl_alloc_new (RTEMS_RTL_ALLOC_OBJECT, colon - name + 1, true);