From ac255c2b14dbf71eb61258fb9cf1a6683e470b3f Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 23 May 2019 12:12:07 +0200 Subject: hardlink: avoid uninitialized variables [clang scan] Signed-off-by: Karel Zak --- misc-utils/hardlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc-utils') diff --git a/misc-utils/hardlink.c b/misc-utils/hardlink.c index 4acd8d7e6..63615896b 100644 --- a/misc-utils/hardlink.c +++ b/misc-utils/hardlink.c @@ -392,9 +392,9 @@ int main(int argc, char **argv) #ifdef HAVE_PCRE int errornumber; PCRE2_SIZE erroroffset; - pcre2_code *re; + pcre2_code *re = NULL; PCRE2_SPTR exclude_pattern = NULL; - pcre2_match_data *match_data; + pcre2_match_data *match_data = NULL; #endif struct hardlink_dynstr nam1 = { NULL, 0 }; struct hardlink_ctl *ctl = &global_ctl; -- cgit v1.2.3-55-g7522