fix #4149

Signed-off-by: Marc Delisle <marc@infomarc.info>
accept license

Signed-off-by: Gemorroj <wapinet@gmail.com>
ChangeLog entry for fix of bug #4149
Fix undefined variable

Signed-off-by: Marc Delisle <marc@infomarc.info>