HomePhabricator

chg: fix an undefined behavior about memcpy

Authored by quark.

Description

chg: fix an undefined behavior about memcpy

Spot by Wez Furlong. memcpy(x, NULL, 0) is undefined according to [1].

[1]: https://stackoverflow.com/questions/5243012

Differential Revision: https://phab.mercurial-scm.org/D3698

Details

Committed
quarkJun 6 2018, 3:53 PM
Differential Revision
D3698: chg: fix an undefined behavior about memcpy
Parents
rHG0a3ff7af24a9: Added signature for changeset 9c5ced5276d6
Branches
Unknown
Tags
Unknown