chiark / gitweb /
core/unit: fix unit_add_target_dependencies() for units with no dependencies
authorDaniel Mack <zonque@gmail.com>
Thu, 20 Feb 2014 12:29:54 +0000 (13:29 +0100)
committerDaniel Mack <zonque@gmail.com>
Thu, 20 Feb 2014 12:29:54 +0000 (13:29 +0100)
commitdb57f3c6d11864f4227bb6734a0d509695a32a7d
tree97f74cdae96e2ff97500ae12db4bb107b4a9ad21
parent6300b3eca9e5261b73bd7f1bb9735992b127cd80
core/unit: fix unit_add_target_dependencies() for units with no dependencies

For units without any dependencies, r needs to be initialized to 0.
Otherwise, the return value of unit_add_target_dependencies() is
unspecified.
src/core/unit.c