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)=='.') )
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user