Skip to content

Commit 696a2c7

Browse files
committed
Variable 'success' is reassigned a value before the old one has been used
1 parent 649606f commit 696a2c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/protonect/src/cpu_depth_packet_processor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace libfreenect2
4444

4545
bool loadBufferFromFile2(const std::string& filename, unsigned char *buffer, size_t n)
4646
{
47-
bool success = true;
47+
bool success;
4848
std::ifstream in(filename.c_str());
4949

5050
in.read(reinterpret_cast<char*>(buffer), n);

0 commit comments

Comments
 (0)