diff options
author | Alex Cherepanov <alex.cherepanov@artifex.com> | 2007-05-03 15:13:26 +0000 |
---|---|---|
committer | Alex Cherepanov <alex.cherepanov@artifex.com> | 2007-05-03 15:13:26 +0000 |
commit | 27a89c3da0b505ce4230f76e4fba53ccd4d366db (patch) | |
tree | 956d4b98a343f45183548fe06554378fb72452a2 | |
parent | 36375961a0209117e1804b1737c5cffeb29da6a5 (diff) | |
download | ghostpdl-27a89c3da0b505ce4230f76e4fba53ccd4d366db.tar.gz |
Avoid a Valgrind warning about ovelapping arguments in memcpy().
Don't assign a structure to itself.
DIFFERENCES:
None
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@7896 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r-- | gs/src/gxhintn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gs/src/gxhintn.c b/gs/src/gxhintn.c index 3d4bd2a73..ddde0378a 100644 --- a/gs/src/gxhintn.c +++ b/gs/src/gxhintn.c @@ -1748,7 +1748,8 @@ private void t1_hinter__simplify_representation(t1_hinter * this) this->primary_hint_count--; continue; /* skip it. */ } else { - this->hint[j] = this->hint[i]; + if (i != j) + this->hint[j] = this->hint[i]; j++; } this->hint_count = j; |