From 91f680b08931aaa43df551d18fdd4b6638fbac7b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 30 Oct 2018 18:07:47 +0100 Subject: Fix style warnings from static analyser --- src/sc_parse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/sc_parse.c') diff --git a/src/sc_parse.c b/src/sc_parse.c index a0ec8a5..e1b797a 100644 --- a/src/sc_parse.c +++ b/src/sc_parse.c @@ -567,11 +567,10 @@ static void separate_newlines(SCBlock *bl) { while ( bl != NULL ) { - char *npos; const char *contents = sc_block_contents(bl); if ( contents != NULL ) { - npos = strchr(contents, '\n'); + char *npos = strchr(contents, '\n'); if ( npos != NULL ) { SCBlock *nb = NULL; if ( npos == contents ) { -- cgit v1.2.3