1 Star 0 Fork 34

ultra_planet/wireshark

forked from src-openEuler/wireshark 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
wireshark-initialize-point-in-end_string.patch 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
From 8862151190b333c938a47fbbe51b0a611607af7d Mon Sep 17 00:00:00 2001
From: lingsheng <[email protected]>
Date: Mon, 2 Nov 2020 16:01:57 +0800
Subject: [PATCH] initialize point in end_string
---
epan/version_info.c | 2 +-
version_info.c | 2 +-
wiretap/version_info.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/epan/version_info.c b/epan/version_info.c
index 6c80bd9..7e979d8 100644
--- a/epan/version_info.c
+++ b/epan/version_info.c
@@ -47,7 +47,7 @@
static void
end_string(GString *str)
{
- size_t point;
+ size_t point = 0;
char *p, *q;
point = str->len;
diff --git a/version_info.c b/version_info.c
index 6c80bd9..7e979d8 100644
--- a/version_info.c
+++ b/version_info.c
@@ -47,7 +47,7 @@
static void
end_string(GString *str)
{
- size_t point;
+ size_t point = 0;
char *p, *q;
point = str->len;
diff --git a/wiretap/version_info.c b/wiretap/version_info.c
index 6c80bd9..7e979d8 100644
--- a/wiretap/version_info.c
+++ b/wiretap/version_info.c
@@ -47,7 +47,7 @@
static void
end_string(GString *str)
{
- size_t point;
+ size_t point = 0;
char *p, *q;
point = str->len;
--
2.23.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ultra_planet/wireshark.git
[email protected]:ultra_planet/wireshark.git
ultra_planet
wireshark
wireshark
master

搜索帮助