From bf6ec74c65e1fa7542aef1cc5d46ac6104fc25ce Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 25 Sep 2019 13:43:12 +0200 Subject: Get rid of used uninitialized GCC warning --- libbutl/filesystem.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbutl/filesystem.cxx b/libbutl/filesystem.cxx index b310dd8..80fc4d1 100644 --- a/libbutl/filesystem.cxx +++ b/libbutl/filesystem.cxx @@ -1573,7 +1573,7 @@ namespace butl // Match the pattern suffix (follows the last *) to the name trailing // characters. // - char pc; + char pc ('\0'); for (; rpi != rpe && (pc = *rpi) != '*' && rni != rne; ++rpi, ++rni) { #ifndef _WIN32 -- cgit v1.1