Some assertions, just in case.

This commit is contained in:
Shyotl
2011-03-24 05:00:46 -05:00
parent e4df5c7fd0
commit 23e1521a6b
4 changed files with 20 additions and 2 deletions

View File

@@ -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';