Skip to content

Commit

Permalink
Fix uninitialized variable
Browse files Browse the repository at this point in the history
* Fixes #128.
  • Loading branch information
KapiX committed Jan 8, 2020
1 parent 824ad4c commit 97015bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/EditorWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ EditorWindow::_ShowModifiedAlert()
const char* alertText;
const char* button0 = B_TRANSLATE("Cancel");
const char* button1 = B_TRANSLATE("Discard");
const char* button2;
const char* button2 = nullptr;
if(fReadOnly == true) {
alertText = B_TRANSLATE("The file contains unsaved changes, but is read-only. What to do?");
//button2 = B_TRANSLATE("Save as" B_UTF8_ELLIPSIS);
Expand Down

0 comments on commit 97015bd

Please sign in to comment.