aboutsummaryrefslogtreecommitdiff
path: root/src/sc_parse.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-10-30 18:07:47 +0100
committerThomas White <taw@bitwiz.me.uk>2018-10-30 18:07:47 +0100
commit91f680b08931aaa43df551d18fdd4b6638fbac7b (patch)
tree250c45ab354dd55a67f8a7fe0507a80127f0e1b7 /src/sc_parse.c
parent19f20ab06476f93977d1c7130b76f7c31d198936 (diff)
Fix style warnings from static analyser
Diffstat (limited to 'src/sc_parse.c')
-rw-r--r--src/sc_parse.c3
1 files changed, 1 insertions, 2 deletions
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 ) {