ALT Linux Bugzilla
– Attachment 15160 Details for
Bug 48682
При использовании утилиты, уведомление: Use of uninitialized value $platform in hash element at /usr/bin/inxi line 16284
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Патч проверюющий инициализацию переменной
inxi.diff (text/plain), 1.34 KB, created by
ruslandh
on 2023-12-05 19:38:26 MSK
(
hide
)
Description:
Патч проверюющий инициализацию переменной
Filename:
MIME Type:
Creator:
ruslandh
Created:
2023-12-05 19:38:26 MSK
Size:
1.34 KB
patch
obsolete
>--- inxi.save 2023-11-07 12:30:16.000000000 +0300 >+++ inxi 2023-12-05 19:30:27.469943900 +0300 >@@ -16259,9 +16259,15 @@ sub gl_data { > } > elsif ($working[0] eq 'EGL driver name'){ > if (!defined $device){ >- $gl->{'egl'}{'platforms'}{$platform}{'egl'}{'driver'} = $working[1]; >+ if ($platform // '' ){ >+ $gl->{'egl'}{'platforms'}{$platform}{'egl'}{'driver'} = $working[1]; } >+ else { >+ $gl->{'egl'}{'platforms'}{'platform'}{'egl'}{'driver'} = $working[1];} > if ($mesa_drivers{$working[1]}){ >- $gl->{'egl'}{'platforms'}{$platform}{'egl'}{'hw'} = $mesa_drivers{$working[1]}; >+ if ($platform // '' ){ >+ $gl->{'egl'}{'platforms'}{$platform}{'egl'}{'hw'} = $mesa_drivers{$working[1]}; } >+ else { >+ $gl->{'egl'}{'platforms'}{'egl'}{'hw'} = $mesa_drivers{$working[1]}; } > } > } > else { >@@ -16281,7 +16287,10 @@ sub gl_data { > $gl->{'egl'}{'platforms'}{$platform}{$device}{'egl'}{'client-apis'} = [split(/\s+/,$working[1])]; > } > else { >- $gl->{'egl'}{'platforms'}{$platform}{'egl'}{'client-apis'} = [split(/\s+/,$working[1])]; >+ if ( $platform // '' ) { >+ $gl->{'egl'}{'platforms'}{$platform}{'egl'}{'client-apis'} = [split(/\s+/,$working[1])]; } >+ else { >+ $gl->{'egl'}{'platforms'}{'egl'}{'client-apis'} = [split(/\s+/,$working[1])]; } > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 48682
:
15148
|
15149
| 15160