summaryrefslogtreecommitdiff
path: root/package/iproute2/patches/patch-ip_iplink_can_c
blob: f08774b36b1ea29c8eaf7eea0b0bd3176fda9459 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- iproute2-6.11.0.orig/ip/iplink_can.c	2024-09-15 21:42:26.000000000 +0200
+++ iproute2-6.11.0/ip/iplink_can.c	2024-09-24 09:43:33.522450056 +0200
@@ -137,7 +137,7 @@ static int can_parse_opt(struct link_uti
 			if (get_u32(&bt.bitrate, *argv, 0))
 				invarg("invalid \"bitrate\" value\n", *argv);
 		} else if (matches(*argv, "sample-point") == 0) {
-			float sp;
+			float sp = 0;
 
 			NEXT_ARG();
 			if (get_float(&sp, *argv))