mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 13:08:12 +02:00
xkb: Fix potential uninitialized variable
As reported by static analyzer: | xkb/xkbtext.c:1265:5: var_decl: Declaring variable "buf" without initializer. | xkb/xkbtext.c:1322:5: uninit_use_in_call: Using uninitialized value "*buf" when calling "tbGetBufferString". | xkb/xkbtext.c:77:5: read_value: Reading value "*str" when calling "strlen". | 1320| } | 1321| } | 1322|-> return tbGetBufferString(buf); | 1323| } | 1324| Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2195>
This commit is contained in:
parent
f959f1e51f
commit
3e872c90c7
1 changed files with 1 additions and 1 deletions
|
|
@ -1262,7 +1262,7 @@ XkbActionText(XkbDescPtr xkb, XkbAction *action, unsigned format)
|
|||
char *
|
||||
XkbBehaviorText(XkbDescPtr xkb, XkbBehavior * behavior, unsigned format)
|
||||
{
|
||||
char buf[256];
|
||||
char buf[256] = "";
|
||||
|
||||
if (format == XkbCFile) {
|
||||
if (behavior->type == XkbKB_Default)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue