summaryrefslogtreecommitdiff
path: root/soltools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-16 12:24:01 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-16 12:24:01 +0200
commit6149c5c8352d1e5c45568b5551539175f5305d4d (patch)
tree636c944df7143fa523bca05cbc06fd00c26f660a /soltools
parent2b079c439c73cbf0224858829380b38881ec3979 (diff)
-fsanitize=nonnull-attribute
Change-Id: Id214fb1f0decd4d39684a846c06ff97d8baa209d
Diffstat (limited to 'soltools')
-rw-r--r--soltools/cpp/_tokens.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/soltools/cpp/_tokens.c b/soltools/cpp/_tokens.c
index e31ccbd1c4ff..c764886593d6 100644
--- a/soltools/cpp/_tokens.c
+++ b/soltools/cpp/_tokens.c
@@ -295,7 +295,8 @@ void
size_t nby;
nby = (char *) str->lp - (char *) str->bp;
- memmove(dtr->tp, str->bp, nby);
+ if (nby)
+ memmove(dtr->tp, str->bp, nby);
}
/*