summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-24 20:24:51 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-24 20:24:51 (GMT)
commite7697a35d1d3be3f2e4f0ce87cc0d45678051965 (patch)
treed489b3dee432ccf196871b05108a7befc3e55292
parentfe8e85f404d88f1d4e02a54e488b4b2ead4e049a (diff)
Fix misuse of bool
-rw-r--r--generators/fax/faxinit.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/generators/fax/faxinit.cpp b/generators/fax/faxinit.cpp
index 6615c56..c8cd749 100644
--- a/generators/fax/faxinit.cpp
+++ b/generators/fax/faxinit.cpp
@@ -317,11 +317,13 @@ FillTable(struct tabent *T, int Size, const struct proto *P, int State)
void
fax_init_tables(void)
{
- static bool already_initialized = 0;
- if (already_initialized)
- return;
+ static bool already_initialized = false;
+ if (already_initialized) {
+ return;
+ }
+ already_initialized = true;
+
- ++already_initialized;
FillTable(MainTable, 7, Pass, S_Pass);
FillTable(MainTable, 7, Horiz, S_Horiz);