diff options
Diffstat (limited to 'src/libXNVCtrlAttributes/NvCtrlAttributesGlx.c')
-rw-r--r-- | src/libXNVCtrlAttributes/NvCtrlAttributesGlx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libXNVCtrlAttributes/NvCtrlAttributesGlx.c b/src/libXNVCtrlAttributes/NvCtrlAttributesGlx.c index 08a40b6..9d99c39 100644 --- a/src/libXNVCtrlAttributes/NvCtrlAttributesGlx.c +++ b/src/libXNVCtrlAttributes/NvCtrlAttributesGlx.c @@ -137,6 +137,7 @@ static Bool open_libgl(void) if ( !__libGL ) { __libGL = (__libGLInfo *) calloc(1, sizeof(__libGLInfo)); if ( !__libGL ) { + error_str = "Could not allocate memory."; goto fail; } } @@ -152,6 +153,7 @@ static Bool open_libgl(void) /* We are the first to open the library */ __libGL->handle = dlopen("libGL.so.1", RTLD_LAZY); if ( !__libGL->handle ) { + error_str = dlerror(); goto fail; } |