summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerkeyboard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llviewerkeyboard.cpp')
-rw-r--r--indra/newview/llviewerkeyboard.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/indra/newview/llviewerkeyboard.cpp b/indra/newview/llviewerkeyboard.cpp
index d970d1d086..17c9a1fc10 100644
--- a/indra/newview/llviewerkeyboard.cpp
+++ b/indra/newview/llviewerkeyboard.cpp
@@ -697,15 +697,16 @@ S32 LLViewerKeyboard::loadBindings(const char *filename)
S32 binding_count = 0;
S32 line_count = 0;
- fp = LLFile::fopen(filename, "r"); /* Flawfinder: ignore */
+ if(!filename)
+ {
+ llerrs << " No filename specified" << llendl;
+ return 0;
+ }
+
+ fp = LLFile::fopen(filename, "r");
if (!fp)
{
- if(!filename)
- {
- llerrs << " No filename specified" << llendl;
- return 0;
- }
return 0;
}