mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
Reduce variable scope, fix indenting
This commit is contained in:
parent
6ff2f395e6
commit
53566f2ec0
@ -309,13 +309,13 @@ cv::String CameraWrapperConnector::getPathLibFolder()
|
||||
|
||||
const char* libName=dl_info.dli_fname;
|
||||
while( ((*libName)=='/') || ((*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