~vanvugt/mir/graphics-mesa-x11

« back to all changes in this revision

Viewing changes to examples/basic.c

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2015-07-28 17:41:53 UTC
  • mfrom: (2788.2.1 mir3)
  • Revision ID: tarmac-20150728174153-iyffjgpt07ziqgtu
examples: Don't use uninitialized memory.

Approved by PS Jenkins bot, Cemil Azizoglu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
    }
119
119
 
120
120
    // Identify a supported pixel format
121
 
    MirPixelFormat pixel_format;
 
121
    MirPixelFormat pixel_format = mir_pixel_format_invalid;
122
122
    unsigned int valid_formats;
123
123
    mir_connection_get_available_surface_formats(mcd.connection, &pixel_format, 1, &valid_formats);
124
124