MITHILESH MATTAPALLI commented on a discussion on cpukit/posix/src/semopen.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/952#note_140540

 >    }
 >  
 >    _Objects_Allocator_lock();
 >    the_semaphore = _POSIX_Semaphore_Get_by_name( name, &name_len, &error );

Applied the same fix as sem_open: initialized name_len to 0 to resolve the 
warning and removed the redundant strlen() call and string.h include, as the 
length is already calculated by the internal object lookup.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/952#note_140540
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to