Skip to content

Commit 1936725

Browse files
committed
(#91) Fixed unused variable
1 parent fff9884 commit 1936725

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/startup.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static void startupCheck(void)
2626
int32_t majorOpcode;
2727
int32_t firstEvent;
2828
int32_t firstError;
29-
bool isXTestAvailable = XQueryExtension(display, "XTEST", &majorOpcode, &firstEvent, &firstEvent);
29+
bool isXTestAvailable = XQueryExtension(display, "XTEST", &majorOpcode, &firstEvent, &firstError);
3030

3131
if (!isXTestAvailable) {
3232
std::cout << "##### WARNING! Your system is missing libXtst! Please visit https://github.com/nut-tree/nut.js#linux #####" << std::endl;

0 commit comments

Comments
 (0)