Skip to content

Commit b233813

Browse files
committed
route: fix a bogus uninitialised check from clang
1 parent 2a3fb4e commit b233813

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/route.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ rt_add(rb_tree_t *kroutes, struct rt *nrt, struct rt *ort)
566566
struct dhcpcd_ctx *ctx;
567567
struct rt *krt;
568568
int loglevel = LOG_INFO;
569-
bool change, result;
569+
bool change, result = false;
570570

571571
assert(nrt != NULL);
572572
ctx = nrt->rt_ifp->ctx;
@@ -686,7 +686,6 @@ rt_add(rb_tree_t *kroutes, struct rt *nrt, struct rt *ort)
686686
logerr:
687687
#endif
688688
logerr("if_route (ADD)");
689-
result = false;
690689

691690
out:
692691
if (krt != NULL) {

0 commit comments

Comments
 (0)