Skip to content

Commit

Permalink
fix unitialized variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisOSRM committed Mar 4, 2014
1 parent 85a007d commit 0baa821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Algorithms/IteratorBasedCRC32.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class IteratorbasedCRC32 {
}

inline unsigned cpuid() const {
unsigned eax, ebx, ecx, edx;
unsigned eax = 0, ebx = 0, ecx = 0, edx = 0;
// on X64 this calls hardware cpuid(.) instr. otherwise a dummy impl.
__get_cpuid( 1, &eax, &ebx, &ecx, &edx );
return ecx;
Expand Down

0 comments on commit 0baa821

Please sign in to comment.