Commit 53566f2e authored by Dmitry-Me's avatar Dmitry-Me

Reduce variable scope, fix indenting

parent 6ff2f395
...@@ -311,11 +311,11 @@ cv::String CameraWrapperConnector::getPathLibFolder() ...@@ -311,11 +311,11 @@ cv::String CameraWrapperConnector::getPathLibFolder()
while( ((*libName)=='/') || ((*libName)=='.') ) while( ((*libName)=='/') || ((*libName)=='.') )
libName++; libName++;
char lineBuf[2048];
FILE* file = fopen("/proc/self/smaps", "rt"); FILE* file = fopen("/proc/self/smaps", "rt");
if(file) if(file)
{ {
char lineBuf[2048];
while (fgets(lineBuf, sizeof lineBuf, file) != NULL) while (fgets(lineBuf, sizeof lineBuf, file) != NULL)
{ {
//verify that line ends with library name //verify that line ends with library name
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment