Project

General

Profile

Actions

Task #1506

closed

Unitiailzed Variables in tlv readVarNumber/readType

Added by Michael Sweatt almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Low
Assignee:
Michael Sweatt
Category:
-
Target version:
-
Start date:
04/20/2014
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

There are a few uninitialized variables, which are declared and then passed into another function by reference.
This causes the build to fail in debug mode.

In these functions the variable is always either set or an error is thrown, thus initializing them to an arbitrary values should be
a sufficicent fix.

Actions #1

Updated by Alex Afanasyev almost 10 years ago

Interestingly, this warning is generated only when -Og is specified. On Jenkins bot we compile in optimized mode with -O2, that is why it didn't catch it.

Actions #2

Updated by Alex Afanasyev almost 10 years ago

  • Status changed from New to Code review
  • % Done changed from 90 to 100
Actions #3

Updated by Alex Afanasyev almost 10 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF