Ticket #5430: programs_mythfrontend_main.cpp-dont-give-pthread_join-vars-it-doesnt-use.patch

File programs_mythfrontend_main.cpp-dont-give-pthread_join-vars-it-doesnt-use.patch, 760 bytes (added by Erik Hovland <erik@…>, 16 years ago)

removes pointer given to pthread_join

  • programs/mythfrontend/main.cpp

    If a value is uninitialized and then used then it is a defect. This could be
    
    From: Erik Hovland <erik@hovland.org>
    
    true for very strange conditions. But true none-the-less.
    ---
    
     programs/mythfrontend/main.cpp |    3 +--
     1 files changed, 1 insertions(+), 2 deletions(-)
    
    diff --git a/programs/mythfrontend/main.cpp b/programs/mythfrontend/main.cpp
    index 782ab4a..37c19d9 100644
    a b int main(int argc, char **argv) 
    15311531
    15321532    if (priv_thread_created)
    15331533    {
    1534         void *value;
    15351534        gContext->addPrivRequest(MythPrivRequest::MythExit, NULL);
    1536         pthread_join(priv_thread, &value);
     1535        pthread_join(priv_thread, 0);
    15371536    }
    15381537
    15391538    signal(SIGHUP, SIG_DFL);