coverity 702387

add missing NULL check

svn path=/trunk/; revision=54848
This commit is contained in:
Martin Kaiser 2014-01-19 16:19:24 +00:00
parent f544e0812a
commit a0df200a84
1 changed files with 4 additions and 0 deletions

View File

@ -309,6 +309,10 @@ WSLUA_METHOD ProgDlg_update(lua_State* L) { /* Appends text */
WSLUA_ERROR(ProgDlg_update,"GUI not available");
}
if (!pd) {
WSLUA_ERROR(ProgDlg_update,"Cannot be called for something not a ProgDlg");
}
g_free(pd->task);
pd->task = g_strdup(task);