Fix the sdb shell malfunction in ASan build 41/89741/2
authorSlava Barinov <v.barinov@samsung.com>
Mon, 26 Sep 2016 15:06:29 +0000 (18:06 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Wed, 28 Sep 2016 11:27:30 +0000 (14:27 +0300)
commit679d5a6846cc20d290d35cc6d7b091cc3936c807
treeed5b89ff2b4c70e9564ac05700628661efa4e877
parentab5f65454a12ee0d98413c70df6abad7bc1e5540
Fix the sdb shell malfunction in ASan build

Accordingly to exec(3) manual the envp argument is an array of pointers to
null-terminated strings and must be terminated by a null pointer.

Without the terminator execvp fails and errno is set to 'Bad address'

Change-Id: I00e6927fd62323b7a9bea918cc79b0c4e02d77fd
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
src/services.c