Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[xsrc/trunk]: xsrc/external/mit/xorg-server/dist/config Follow the error path...
details: https://anonhg.NetBSD.org/xsrc/rev/fc841feb0f73
branches: trunk
changeset: 10826:fc841feb0f73
user: nia <nia%NetBSD.org@localhost>
date: Sun Dec 05 21:14:12 2021 +0000
description:
Follow the error path if asprintf fails, not if it succeeds.
diffstat:
external/mit/xorg-server/dist/config/wscons.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 2bd0c880f3bd -r fc841feb0f73 external/mit/xorg-server/dist/config/wscons.c
--- a/external/mit/xorg-server/dist/config/wscons.c Sat Dec 04 15:21:55 2021 +0000
+++ b/external/mit/xorg-server/dist/config/wscons.c Sun Dec 05 21:14:12 2021 +0000
@@ -139,7 +139,7 @@
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 */
Home |
Main Index |
Thread Index |
Old Index