mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Moved int pos declaration at the top the func
This commit is contained in:
@ -1441,9 +1441,10 @@ int wolfSSL_BIO_seek(WOLFSSL_BIO *bio, int ofs)
|
||||
}
|
||||
int wolfSSL_BIO_tell(WOLFSSL_BIO* bio)
|
||||
{
|
||||
WOLFSSL_ENTER("wolfSSL_BIO_tell");
|
||||
int pos;
|
||||
|
||||
WOLFSSL_ENTER("wolfSSL_BIO_tell");
|
||||
|
||||
if (bio == NULL) {
|
||||
return -1;
|
||||
}
|
||||
@ -1452,8 +1453,8 @@ int wolfSSL_BIO_tell(WOLFSSL_BIO* bio)
|
||||
return 0;
|
||||
}
|
||||
|
||||
pos =(int) XFTELL((XFILE)bio->ptr);
|
||||
if(pos < 0)
|
||||
pos = (int)XFTELL((XFILE)bio->ptr);
|
||||
if (pos < 0)
|
||||
return -1;
|
||||
else
|
||||
return pos;
|
||||
|
Reference in New Issue
Block a user