diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerkeyboard.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/linden/indra/newview/llviewerkeyboard.cpp b/linden/indra/newview/llviewerkeyboard.cpp index f514b2e..fcb1550 100644 --- a/linden/indra/newview/llviewerkeyboard.cpp +++ b/linden/indra/newview/llviewerkeyboard.cpp | |||
@@ -717,15 +717,16 @@ S32 LLViewerKeyboard::loadBindings(const char *filename) | |||
717 | S32 binding_count = 0; | 717 | S32 binding_count = 0; |
718 | S32 line_count = 0; | 718 | S32 line_count = 0; |
719 | 719 | ||
720 | fp = LLFile::fopen(filename, "r"); /* Flawfinder: ignore */ | 720 | if(!filename) |
721 | { | ||
722 | llerrs << " No filename specified" << llendl; | ||
723 | return 0; | ||
724 | } | ||
725 | |||
726 | fp = LLFile::fopen(filename, "r"); | ||
721 | 727 | ||
722 | if (!fp) | 728 | if (!fp) |
723 | { | 729 | { |
724 | if(!filename) | ||
725 | { | ||
726 | llerrs << " No filename specified" << llendl; | ||
727 | return 0; | ||
728 | } | ||
729 | return 0; | 730 | return 0; |
730 | } | 731 | } |
731 | 732 | ||