<div dir="ltr">nvm... </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 24, 2020 at 5:52 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Return RTEMS_NO_MEMORY if there is not memory available to duplicate the<br>
name.<br>
---<br>
 cpukit/rtems/src/rtemsobjectsetname.c | 5 +++--<br>
 1 file changed, 3 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/cpukit/rtems/src/rtemsobjectsetname.c b/cpukit/rtems/src/rtemsobjectsetname.c<br>
index 9e1b3a4039..ca663c67cd 100644<br>
--- a/cpukit/rtems/src/rtemsobjectsetname.c<br>
+++ b/cpukit/rtems/src/rtemsobjectsetname.c<br>
@@ -36,6 +36,7 @@ rtems_status_code rtems_object_set_name(<br>
   Objects_Information *information;<br>
   Objects_Control     *the_object;<br>
   Objects_Id           tmpId;<br>
+  Status_Control       status;<br>
<br>
   if ( !name )<br>
     return RTEMS_INVALID_ADDRESS;<br>
@@ -54,7 +55,7 @@ rtems_status_code rtems_object_set_name(<br>
     return RTEMS_INVALID_ID;<br>
   }<br>
<br>
-  _Objects_Set_name( information, the_object, name );<br>
+  status = _Objects_Set_name( information, the_object, name );<br>
   _Objects_Allocator_unlock();<br>
-  return RTEMS_SUCCESSFUL;<br>
+  return STATUS_GET_CLASSIC( status );<br>
 }<br>
-- <br>
2.26.2<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>