Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wolfi323:branches:KDE:Frameworks5
okular4
Fix-misuse-of-bool.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Fix-misuse-of-bool.patch of Package okular4
From e7697a35d1d3be3f2e4f0ce87cc0d45678051965 Mon Sep 17 00:00:00 2001 From: "Martin T. H. Sandsmark" <martin.sandsmark@kde.org> Date: Sun, 24 Jul 2016 22:24:51 +0200 Subject: [PATCH] Fix misuse of bool --- generators/fax/faxinit.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/generators/fax/faxinit.cpp b/generators/fax/faxinit.cpp index 6615c5678..c8cd74946 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); -- GitLab
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor