]> Git Repo - qemu.git/commit - qga/commands-posix.c
qga: fix compiler warnings (clang 5)
authorPhilippe Mathieu-Daudé <[email protected]>
Fri, 7 Apr 2017 22:20:15 +0000 (19:20 -0300)
committerMichael Tokarev <[email protected]>
Sun, 7 May 2017 06:57:51 +0000 (09:57 +0300)
commit9879f5ac62c1e0c92a5ff2f4a0ada1b66d43da90
treec902cc5fdb672d2ce6f648e02b8e332e28008574
parent21a9ad2f159e4cafd090cc2b47ce322e024c7363
qga: fix compiler warnings (clang 5)

static code analyzer complain:

qga/commands-posix.c:2127:9: warning: Null pointer passed as an argument to a 'nonnull' parameter
        closedir(dp);
        ^~~~~~~~~~~~

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Marc-André Lureau <[email protected]>
Reviewed-by: Michael Roth <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
qga/commands-posix.c
This page took 0.025158 seconds and 4 git commands to generate.