diff options
author | Jacek Antonelli | 2008-08-15 23:45:04 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:04 -0500 |
commit | 117e22047c5752352342d64e3fb7ce00a4eb8113 (patch) | |
tree | e32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/newview/llviewerinventory.cpp | |
parent | Second Life viewer sources 1.18.0.6 (diff) | |
download | meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2 meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz |
Second Life viewer sources 1.18.1.2
Diffstat (limited to 'linden/indra/newview/llviewerinventory.cpp')
-rw-r--r-- | linden/indra/newview/llviewerinventory.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewerinventory.cpp b/linden/indra/newview/llviewerinventory.cpp index f24b7c7..6372ba8 100644 --- a/linden/indra/newview/llviewerinventory.cpp +++ b/linden/indra/newview/llviewerinventory.cpp | |||
@@ -460,7 +460,11 @@ bool LLViewerInventoryCategory::importFileLocal(FILE* fp) | |||
460 | valuestr[0] = '\0'; | 460 | valuestr[0] = '\0'; |
461 | while(!feof(fp)) | 461 | while(!feof(fp)) |
462 | { | 462 | { |
463 | fgets(buffer, MAX_STRING, fp); | 463 | if (fgets(buffer, MAX_STRING, fp) == NULL) |
464 | { | ||
465 | buffer[0] = '\0'; | ||
466 | } | ||
467 | |||
464 | sscanf( /* Flawfinder: ignore */ | 468 | sscanf( /* Flawfinder: ignore */ |
465 | buffer, " %254s %254s", keyword, valuestr); | 469 | buffer, " %254s %254s", keyword, valuestr); |
466 | if(0 == strcmp("{",keyword)) | 470 | if(0 == strcmp("{",keyword)) |