mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
wstrdup cannot fail, therefore no need to check for NULL.
This commit is contained in:
committed by
Carlos R. Mafra
parent
70d8ad515b
commit
971f611bad
@@ -171,9 +171,8 @@ static void renameCallback(WMenu *menu, WMenuEntry *entry)
|
||||
if (wInputDialog(dock->screen_ptr, _("Rename Workspace"), buffer, &name)) {
|
||||
wWorkspaceRename(dock->screen_ptr, wspace, name);
|
||||
}
|
||||
if (name) {
|
||||
wfree(name);
|
||||
}
|
||||
|
||||
wfree(name);
|
||||
}
|
||||
|
||||
static void toggleLoweredCallback(WMenu *menu, WMenuEntry *entry)
|
||||
|
||||
Reference in New Issue
Block a user