Skip to content

Commit 64c2cf5

Browse files
bw31642Brian Watts
andauthored
all: return a proper code at initialization (#33)
Co-authored-by: Brian Watts <[email protected]>
1 parent 8eb5153 commit 64c2cf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clipboard_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int initX11() {
4141
}
4242
libX11 = dlopen("libX11.so", RTLD_LAZY);
4343
if (!libX11) {
44-
return -1;
44+
return 0;
4545
}
4646
P_XOpenDisplay = (Display* (*)(int)) dlsym(libX11, "XOpenDisplay");
4747
P_XCloseDisplay = (void (*)(Display*)) dlsym(libX11, "XCloseDisplay");

0 commit comments

Comments
 (0)