callouts: always print the environment even if no scripts are present
authorThomas Haller <thaller@redhat.com>
Tue, 19 Jan 2016 10:01:33 +0000 (11:01 +0100)
committerThomas Haller <thaller@redhat.com>
Tue, 19 Jan 2016 10:01:33 +0000 (11:01 +0100)
commita841d40039186d6ea454610a314243deb4491ed7
tree1918350b977581d641c585cad9c08cfeadc77017
parentf7c76b372c6eeaec7989fb143b3a4f7e9caf97a4
callouts: always print the environment even if no scripts are present

Commit ac6522bbf109ac0af8845cc81903155bab914760 moved logging of the environment
after the check for @error_message to avoid a crash. However, in case of no
scripts (request->scripts->len == 0) we still want to log the environment,
so move it back to where it was, but avoid the crash.
callouts/nm-dispatcher.c