]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[sofia-sip] scan-build: Fix "Called function pointer is null (null dereference)"... 374/head
authorAndrey Volk <andywolk@gmail.com>
Sun, 16 Feb 2020 00:06:37 +0000 (04:06 +0400)
committerAndrey Volk <andywolk@gmail.com>
Sun, 16 Feb 2020 00:06:37 +0000 (04:06 +0400)
libs/sofia-sip/libsofia-sip-ua/su/su_taglist.c

index 431a2dcb5655af7020a0f6f41e7d9c02fbd31362..27510a40244f7ecc7f5abf46d30f5ec3599d0e7d 100644 (file)
@@ -485,8 +485,9 @@ tagi_t *t_filter(tagi_t *dst,
     size_t d = 0;
 
     for (f = filter; f; f = t_next(f)) {
-      if (TAG_TYPE_OF(f)->tt_filter)
-       d += (size_t)TAG_TYPE_OF(f)->tt_filter(NULL, f, src, bb);
+      tag_type_t tt_f = TAG_TYPE_OF(f);
+      if (tt_f->tt_filter)
+       d += (size_t)tt_f->tt_filter(NULL, f, src, bb);
       else if (tt == f->t_tag) {
        d += t_len(src);
        *bb = (char *)*bb + t_xtra(src, (size_t)*bb);