aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-03-08 13:15:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-03-08 13:15:54 +0200
commit3b31893d737c55329f5d52e7b107804d8da4dde8 (patch)
treef96cf17246d7ea143ee69dc8b212a9b5c054146c /libbuild2
parente7fa710dd90999702755141c4e704c2d609f9a07 (diff)
Fix uninitialized variable bug
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/cc/pkgconfig.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/cc/pkgconfig.cxx b/libbuild2/cc/pkgconfig.cxx
index 62680d3..b06d488 100644
--- a/libbuild2/cc/pkgconfig.cxx
+++ b/libbuild2/cc/pkgconfig.cxx
@@ -437,7 +437,7 @@ namespace build2
// library. What we do at the moment is stop recognizing just library
// names (without -l) after seeing an unknown option.
//
- bool first (true), known (true), have_L;
+ bool first (true), known (true), have_L (false);
char arg ('\0'); // Option with pending argument.
for (auto& o: pc.libs (la))