Ticket #10380: 0001-Fix-Coverity-CID-611177-unchecked-return-value.patch

File 0001-Fix-Coverity-CID-611177-unchecked-return-value.patch, 885 bytes (added by noryb009, 7 years ago)
  • src/apps/debugger/user_interface/gui/teams_window/TeamsListView.cpp

    From 0a671b0a5f859693ff5f87a784ae25ba9b9b5479 Mon Sep 17 00:00:00 2001
    From: noryb009 <noryb009@hotmail.com>
    Date: Sun, 5 Jan 2014 19:09:54 -0500
    Subject: [PATCH] Fix Coverity CID 611177: unchecked return value
    
    ---
     src/apps/debugger/user_interface/gui/teams_window/TeamsListView.cpp | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/apps/debugger/user_interface/gui/teams_window/TeamsListView.cpp b/src/apps/debugger/user_interface/gui/teams_window/TeamsListView.cpp
    index 2d72401..2976245 100644
    a b TeamRow::TeamRow(team_id team)  
    202202    : BRow(20.0)
    203203{
    204204    team_info info;
    205     get_team_info(team, &info);
    206     _SetTo(info);
     205    if (get_team_info(team, &info) == B_OK)
     206        _SetTo(info);
    207207}
    208208
    209209