diff options
author | Joel Sherrill <joel@rtems.org> | 2017-04-25 13:57:03 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2017-04-25 13:57:03 -0500 |
commit | 6601684f74f0ea1ec44fb52ec75d52215af11f5f (patch) | |
tree | 49aa3d1f5b501254c1fabb2efd72c425f5ced8e2 /cpukit/posix/src/mutexinit.c | |
parent | moxie/rtems/score/cpu.h: Fix printf() format warning (diff) | |
download | rtems-6601684f74f0ea1ec44fb52ec75d52215af11f5f.tar.bz2 |
posix/src/mutexinit.c: Fix used before initialized warning
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/mutexinit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpukit/posix/src/mutexinit.c b/cpukit/posix/src/mutexinit.c index 39139a4291..47e0bcba73 100644 --- a/cpukit/posix/src/mutexinit.c +++ b/cpukit/posix/src/mutexinit.c @@ -40,6 +40,9 @@ int pthread_mutex_init( const Scheduler_Control *scheduler; Priority_Control priority; + /* initialize to avoid warning for used uninitialized */ + priority = 0; + if ( attr ) the_attr = attr; else the_attr = &_POSIX_Mutex_Default_attributes; |