Module: kamailio
Branch: master
Commit: c97145862119e9001874cd07de9b20ad8e96ff54
URL: 
https://github.com/kamailio/kamailio/commit/c97145862119e9001874cd07de9b20ad8e96ff54

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-07-12T11:49:10+02:00

rls: remove unnecessary assignment

---

Modified: src/modules/rls/resource_notify.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/c97145862119e9001874cd07de9b20ad8e96ff54.diff
Patch: 
https://github.com/kamailio/kamailio/commit/c97145862119e9001874cd07de9b20ad8e96ff54.patch

---

diff --git a/src/modules/rls/resource_notify.c 
b/src/modules/rls/resource_notify.c
index c0b308a76d2..8fd388e463c 100644
--- a/src/modules/rls/resource_notify.c
+++ b/src/modules/rls/resource_notify.c
@@ -179,8 +179,8 @@ static void send_notifies(db1_res_t *result, int did_col, 
int resource_uri_col,
        str bstr = {0, 0};
        subs_t *dialog = NULL;
        int len_est = 0;
-       int resource_added =
-                       0; /* Flag to indicate that we have added at least one 
resource */
+       /* Flag to indicate that we have added at least one resource */
+       int resource_added = 0;
 
        /* generate the boundary string */
        boundary_string = generate_string(BOUNDARY_STRING_LEN);
@@ -245,7 +245,6 @@ static void send_notifies(db1_res_t *result, int did_col, 
int resource_uri_col,
                        len_est += 2 * strlen(boundary_string) + 4 + 102 + 2 + 
50
                                           + strlen(resource_uri) + 20;
                        buf_len = 0;
-                       resource_added = 0;
 
                        /* !!!! for now I will include the auth state without 
checking if
                         * it has changed - > in future check if it works */

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to