Some assertions, just in case.
This commit is contained in:
@@ -1908,7 +1908,12 @@ BOOL LLDataPackerAsciiFile::getValueStr(const char *name, char *out_value, S32 v
|
||||
if (mFP)
|
||||
{
|
||||
fpos_t last_pos;
|
||||
fgetpos(mFP, &last_pos);
|
||||
if (0 != fgetpos(mFP, &last_pos)) // 0==success for fgetpos
|
||||
{
|
||||
llwarns << "Data packer failed to fgetpos" << llendl;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (fgets(buffer, DP_BUFSIZE, mFP) == NULL)
|
||||
{
|
||||
buffer[0] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user