Module Name: xsrc
Committed By: nia
Date: Sun Dec 5 21:14:13 UTC 2021
Modified Files:
xsrc/external/mit/xorg-server/dist/config: wscons.c
Log Message:
Follow the error path if asprintf fails, not if it succeeds.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 xsrc/external/mit/xorg-server/dist/config/wscons.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/xorg-server/dist/config/wscons.c
diff -u xsrc/external/mit/xorg-server/dist/config/wscons.c:1.4 xsrc/external/mit/xorg-server/dist/config/wscons.c:1.5
--- xsrc/external/mit/xorg-server/dist/config/wscons.c:1.4 Tue Sep 28 07:20:54 2021
+++ xsrc/external/mit/xorg-server/dist/config/wscons.c Sun Dec 5 21:14:12 2021
@@ -139,7 +139,7 @@ wscons_add_keyboard(void)
input_options = input_option_new(input_options, "name", WSCONS_KBD_DEVICE);
input_options = input_option_new(input_options, "driver", "kbd");
- if (asprintf(&config_info, "wscons:%s", WSCONS_KBD_DEVICE) != -1)
+ if (asprintf(&config_info, "wscons:%s", WSCONS_KBD_DEVICE) == -1)
goto unwind;
if (KB_ENCODING(wsenc) == KB_USER) {
/* Ignore wscons "user" layout */