[Libreoffice-commits] core.git: soltools/cpp
Stephan Bergmann
sbergman at redhat.com
Tue Jun 16 03:24:44 PDT 2015
soltools/cpp/_tokens.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 6149c5c8352d1e5c45568b5551539175f5305d4d
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Jun 16 12:24:01 2015 +0200
-fsanitize=nonnull-attribute
Change-Id: Id214fb1f0decd4d39684a846c06ff97d8baa209d
diff --git a/soltools/cpp/_tokens.c b/soltools/cpp/_tokens.c
index e31ccbd..c764886 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);
}
/*
More information about the Libreoffice-commits
mailing list