Skip to content

Commit 1c38654

Browse files
committed
Fixed bug in loading libcanberra when falling back on alternative library names
1 parent da7a786 commit 1c38654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kitty/desktop.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ load_libcanberra(void) {
113113
if (done) return;
114114
done = true;
115115
libcanberra_handle = dlopen(libname, RTLD_LAZY);
116-
if (libcanberra_handle == NULL) libsn_handle = dlopen(libname2, RTLD_LAZY);
117-
if (libcanberra_handle == NULL) libsn_handle = dlopen(libname3, RTLD_LAZY);
116+
if (libcanberra_handle == NULL) libcanberra_handle = dlopen(libname2, RTLD_LAZY);
117+
if (libcanberra_handle == NULL) libcanberra_handle = dlopen(libname3, RTLD_LAZY);
118118
if (libcanberra_handle == NULL) {
119119
fprintf(stderr, "Failed to load %s, cannot play beep sound, with error: %s\n", libname, dlerror());
120120
return;

0 commit comments

Comments
 (0)