summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Popela <tpopela@redhat.com>2018-07-23 11:45:36 +0200
committerDavid King <amigadave@amigadave.com>2019-01-21 14:38:59 +0000
commit0b3b23c5b389dd5524c6674fc6301510181f2de4 (patch)
treee4246c416ce2b6eb8afe68a53865d0d5fd19cc65
parent6ad30cec3f43ca2a45a7e8079ec30699a73bb6a2 (diff)
downloadyelp-0b3b23c5b389dd5524c6674fc6301510181f2de4.tar.gz
Initialize ws_start variable before returning it
yelp-3.28.1/libyelp/yelp-man-parser.c:1194: var_decl: Declaring variable "ws_start" without initializer. yelp-3.28.1/libyelp/yelp-man-parser.c:1202: uninit_use: Using uninitialized value "ws_start".
-rw-r--r--libyelp/yelp-man-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libyelp/yelp-man-parser.c b/libyelp/yelp-man-parser.c
index f8eb69f6..302ccb31 100644
--- a/libyelp/yelp-man-parser.c
+++ b/libyelp/yelp-man-parser.c
@@ -1193,7 +1193,7 @@ static gchar *
find_contiguous_whitespace (gchar *text, guint ws_len)
{
guint counter = 0;
- gchar *ws_start;
+ gchar *ws_start = NULL;
while (*text) {
if (g_unichar_isspace (g_utf8_get_char (text))) {
if (!counter) ws_start = text;