Commit 4a5fee6
committed
fix potential panic when checking VC++ Redistributable version
The previous code used `?` to propagate an error from
`get_vc_redist_version`, but the parent function does not return a
Result. This change uses `unwrap_or_default()` to safely handle the
absence of a version.1 parent beeb256 commit 4a5fee6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments