1
0
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:
Tobias Stoeckmann
2012-05-05 09:53:38 +02:00
committed by Carlos R. Mafra
parent 70d8ad515b
commit 971f611bad

View File

@@ -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)