Merge pull request #3734 from Dmitry-Me:reduceVariableScope2
This commit is contained in:
commit
b64b82a1ef
@ -311,11 +311,11 @@ cv::String CameraWrapperConnector::getPathLibFolder()
|
||||
while( ((*libName)=='/') || ((*libName)=='.') )
|
||||
libName++;
|
||||
|
||||
char lineBuf[2048];
|
||||
FILE* file = fopen("/proc/self/smaps", "rt");
|
||||
|
||||
if(file)
|
||||
{
|
||||
char lineBuf[2048];
|
||||
while (fgets(lineBuf, sizeof lineBuf, file) != NULL)
|
||||
{
|
||||
//verify that line ends with library name
|
||||
|
Loading…
Reference in New Issue
Block a user