1 Star 0 Fork 19

cenhuilin/libblockdev

forked from src-openEuler/libblockdev 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0007-part-Fix-copy-paste-bug-in-bd_part_spec_copy.patch 834 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 9caf89e4449e5e4cea7f61a7377c77a69d7cad94 Mon Sep 17 00:00:00 2001
From: Vojtech Trefny <vtrefny@redhat.com>
Date: Mon, 5 Aug 2024 10:03:59 +0800
Subject: [PATCH] part: Fix copy-paste bug in bd_part_spec_copy
---
src/lib/plugin_apis/part.api | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/plugin_apis/part.api b/src/lib/plugin_apis/part.api
index 41cc30c..a4e8ee4 100644
--- a/src/lib/plugin_apis/part.api
+++ b/src/lib/plugin_apis/part.api
@@ -82,7 +82,7 @@ BDPartSpec* bd_part_spec_copy (BDPartSpec *data) {
ret->path = g_strdup (data->path);
ret->name = g_strdup (data->name);
- ret->name = g_strdup (data->uuid);
+ ret->uuid = g_strdup (data->uuid);
ret->id = g_strdup (data->id);
ret->type_guid = g_strdup (data->type_guid);
ret->type = data->type;
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cenhuilin/libblockdev.git
git@gitee.com:cenhuilin/libblockdev.git
cenhuilin
libblockdev
libblockdev
master

搜索帮助