dtwm: Resolve coverity warnings

This commit is contained in:
Peter Howkins
2018-04-02 18:08:40 +01:00
parent 4b9bcae29f
commit 8362f92ceb
14 changed files with 39 additions and 46 deletions

View File

@@ -179,7 +179,7 @@ RenameWorkspaceCB (Widget w,
{
long rename_ws = (long) client_data;
SwitchData * switch_data;
SwitchData * switch_data = NULL;
int i;
@@ -195,7 +195,9 @@ RenameWorkspaceCB (Widget w,
}
}
SwitchRenameLabel (switch_data->buttons[rename_ws], panel.box_data[i]);
if(switch_data) {
SwitchRenameLabel (switch_data->buttons[rename_ws], panel.box_data[i]);
}
}