mirror of
https://github.com/amiwm/amiwm.git
synced 2026-04-14 11:04:18 +00:00
[amiwm] Do another pass to clean up build warnings
This is mostly a "dangling if" cleanup, but I did add some other comments here and there!
This commit is contained in:
@@ -505,12 +505,13 @@ struct DiskObject *GetDefDiskObject(LONG def_type)
|
||||
|
||||
if(def_type<WBDISK || def_type>WBAPPICON)
|
||||
return NULL;
|
||||
if(!icondir)
|
||||
if(!(icondir = get_current_icondir()))
|
||||
if(!icondir) {
|
||||
if(!(icondir = get_current_icondir())) {
|
||||
return NULL;
|
||||
else
|
||||
} else {
|
||||
l = strlen(icondir);
|
||||
|
||||
}
|
||||
}
|
||||
#ifdef HAVE_ALLOCA
|
||||
buf = alloca(l+18);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user