From 741613426251c9988304aa79b255bc3d8511d7a2 Mon Sep 17 00:00:00 2001
From: Jacob Su <suzp1984@gmail.com>
Date: Thu, 5 Dec 2024 16:53:22 +0800
Subject: [PATCH] fix compile error in srs_protocol_rtmp_stack.cpp (#4247)

Fix a compiling error.

## How to reproduce?


https://github.com/ossrs/srs/blob/7951bf3bd63a33ec5bfddfba39f9d6e2d476e381/trunk/src/core/srs_core_performance.hpp#L146

Delete this line to write `iovs` one by one (or 2 by 2).
Then `./configure && make`, the compiling error appears.
---
 trunk/src/protocol/srs_protocol_rtmp_stack.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/trunk/src/protocol/srs_protocol_rtmp_stack.cpp b/trunk/src/protocol/srs_protocol_rtmp_stack.cpp
index 2e75b0d4f..5a19e72c1 100644
--- a/trunk/src/protocol/srs_protocol_rtmp_stack.cpp
+++ b/trunk/src/protocol/srs_protocol_rtmp_stack.cpp
@@ -539,7 +539,7 @@ srs_error_t SrsProtocol::do_send_messages(SrsSharedPtrMessage** msgs, int nb_msg
             // consume sendout bytes.
             p += payload_size;
             
-            if ((er = skt->writev(iovs, 2, NULL)) != srs_success) {
+            if ((err = skt->writev(iovs, 2, NULL)) != srs_success) {
                 return srs_error_wrap(err, "writev");
             }
         }