summaryrefslogtreecommitdiff
path: root/xkb/xkbfmisc.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2021-08-17 16:04:40 -0400
committerAdam Jackson <ajax@redhat.com>2021-08-17 16:04:40 -0400
commitb49f0f9b323d66056aa9cd88f9ca1a124037bf32 (patch)
tree87b364655e694a053358e4f7e6c05f3ae8ca876b /xkb/xkbfmisc.c
parentc1138d8ec8d029de54261e355c0e5da0b001044a (diff)
xkb: Silence a warning from gcc 11
I get this: In function ‘TryCopyStr’, inlined from ‘CopyISOLockArgs’ at ../xkb/xkbtext.c:875:9: ../xkb/xkbtext.c:720:13: warning: ‘tbuf’ may be used uninitialized [-Wmaybe-uninitialized] 720 | strcat(to, from); | ^~~~~~~~~~~~~~~~ ../xkb/xkbtext.c: In function ‘CopyISOLockArgs’: <built-in>: note: by argument 1 of type ‘const char *’ to ‘__builtin_strlen’ declared here ../xkb/xkbtext.c:871:10: note: ‘tbuf’ declared here 871 | char tbuf[64]; | ^~~~ Just initialize tbuf so it definitely works.
Diffstat (limited to 'xkb/xkbfmisc.c')
0 files changed, 0 insertions, 0 deletions