From: Donald Sharp Date: Fri, 7 Jun 2019 13:28:39 +0000 (-0400) Subject: pimd: Compiler warning about unset usage X-Git-Tag: base_7.2~248^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=42e01756c1027d603007d0e33fbdee970c549a6c;p=mirror%2Ffrr.git pimd: Compiler warning about unset usage While this is impossible, make the compilers a bit happier for those of us having to use something old. Signed-off-by: Donald Sharp mroute_add_last = pim_time_monotonic_sec(); @@ -985,9 +985,11 @@ int pim_mroute_add(struct channel_oil *c_oil, const char *name) if (c_oil->oil.mfcc_origin.s_addr == INADDR_ANY) c_oil->oil.mfcc_ttls[c_oil->oil.mfcc_parent] = orig; - if (pimreg_ttl_reset) + if (pimreg_ttl_reset) { + assert(pim_reg_ifp); c_oil->oil.mfcc_ttls[pim_reg_ifp->mroute_vif_index] = orig_pimreg_ttl; + } if (orig_term_ttl_reset) c_oil->oil.mfcc_ttls[vxlan_ifp->mroute_vif_index] =