mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 12:28:04 +02:00
compositor-drm: Fix modularization breakage
This commit is contained in:
parent
1258a4a552
commit
8050bd217f
1 changed files with 2 additions and 2 deletions
|
|
@ -746,7 +746,7 @@ drm_compositor_create(struct wl_display *display, int connector)
|
|||
struct wlsc_compositor *
|
||||
backend_init(struct wl_display *display, char *options)
|
||||
{
|
||||
int connector, i;
|
||||
int connector = 0, i;
|
||||
char *p, *value;
|
||||
|
||||
static char * const tokens[] = { "connector", NULL };
|
||||
|
|
@ -755,7 +755,7 @@ backend_init(struct wl_display *display, char *options)
|
|||
while (i = getsubopt(&p, tokens, &value), i != -1) {
|
||||
switch (i) {
|
||||
case 0:
|
||||
connector = strol(value, NULL, 0);
|
||||
connector = strtol(value, NULL, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue