xwayland: Use simpler initialization syntax
Use the simpler form `{ 0 }` instead of `{ '\0', }` for the initialization of the output name buffer. No functional change. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Acked-by: Michel Dänzer <mdaenzer@redhat.com>
This commit is contained in:
parent
e1e3bef7f8
commit
a6bbc9663d
|
@ -834,7 +834,7 @@ xwl_output_create(struct xwl_screen *xwl_screen, uint32_t id,
|
|||
Bool with_xrandr, uint32_t version)
|
||||
{
|
||||
struct xwl_output *xwl_output;
|
||||
char name[MAX_OUTPUT_NAME] = { '\0', };
|
||||
char name[MAX_OUTPUT_NAME] = { 0 };
|
||||
|
||||
xwl_output = calloc(1, sizeof *xwl_output);
|
||||
if (xwl_output == NULL) {
|
||||
|
|
Loading…
Reference in New Issue