neutrinolabs/xrdp — pull request #110 by metalefty (2014-03-02 18:31:16+00:00)
Title: common: the last pointer in the array environ must be null

IMHO, clearing environments should be done by setting the last pointer as NULL. The original code may work on Linux that is GNU userland. But doesn't work at least on FreeBSD and so far it was locally patched for FreeBSD [1]. The new code works both on Linux and FreeBSD.

[1] http://svnweb.freebsd.org/ports/head/net/xrdp/files/patch-common__os_calls.c?revision=192780&view=markup