Merge pull request #2875 from botovq/next

Avoid use of uninitialized in init_dpi_end
This commit is contained in:
Ingo Bürk 2017-09-04 18:43:42 +02:00 committed by GitHub
commit 84394c0025
1 changed files with 1 additions and 1 deletions

View File

@ -24,6 +24,7 @@ static long init_dpi_fallback(void) {
*/
void init_dpi(void) {
xcb_xrm_database_t *database = NULL;
char *resource = NULL;
if (conn == NULL) {
goto init_dpi_end;
@ -35,7 +36,6 @@ void init_dpi(void) {
goto init_dpi_end;
}
char *resource;
xcb_xrm_resource_get_string(database, "Xft.dpi", NULL, &resource);
if (resource == NULL) {
DLOG("Resource Xft.dpi not specified, skipping.\n");