diff options
author | Thomas Rast <trast@student.ethz.ch> | 2010-07-24 17:20:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-07-25 23:14:18 -0700 |
commit | 5d314759d787885c2cc389efbfb3aea1c47b56d9 (patch) | |
tree | a9b59f44086605bb44bb24f7ce2f90f61d1592f3 /quote.c | |
parent | cdad3c54f1020b0b1c0d2d907748f77a60b41a28 (diff) | |
download | git-5d314759d787885c2cc389efbfb3aea1c47b56d9.tar.gz git-5d314759d787885c2cc389efbfb3aea1c47b56d9.tar.xz |
Cast execl*() NULL sentinels to (char *)
The NULL sentinel argument to the execl*() family of calls must be
cast to (char *), as otherwise:
- platforms where NULL is just 0 (not (void *)) would pass an int
- (admittedly esoteric) platforms where NULL is (void *)0 and (void *)
and (char *) have different memory layouts would pass the wrong kind
of pointer
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'quote.c')
0 files changed, 0 insertions, 0 deletions