mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-08 05:00:04 -04:00
Quiet Clang Static Analyzer warnings.
Most of the warnings were caused by uninitialized values. Some were in plug-ins that didn't have a break in a switch, causing the memory to be deleted twice.
This commit is contained in:
@@ -125,7 +125,7 @@ int InfFile::ParseLine(char *operand, int oprlen) {
|
||||
|
||||
// tokenize line.
|
||||
char command[32]; // Command read from line.
|
||||
char *opr, *cmd;
|
||||
char *opr = NULL, *cmd;
|
||||
int retval = INFFILE_NULL;
|
||||
|
||||
if (strlen(m_lineptr) == 0)
|
||||
|
||||
Reference in New Issue
Block a user