Commit b64b82a1 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3734 from Dmitry-Me:reduceVariableScope2

parents 0016f6d7 53566f2e
...@@ -309,13 +309,13 @@ cv::String CameraWrapperConnector::getPathLibFolder() ...@@ -309,13 +309,13 @@ cv::String CameraWrapperConnector::getPathLibFolder()
const char* libName=dl_info.dli_fname; const char* libName=dl_info.dli_fname;
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