Project

General

Profile

Task #1506

Unitiailzed Variables in tlv readVarNumber/readType

Added by Michael Sweatt about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Low
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.

#1

Updated by Alex Afanasyev about 6 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.

#2

Updated by Alex Afanasyev about 6 years ago

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

Updated by Alex Afanasyev about 6 years ago

  • Status changed from Code review to Closed

Also available in: Atom PDF