freebsd-ports/editors/fxite/files/patch-src__menuspec.cpp
John Marino c212d6f6fd editors/fxite: Fix when Fox-1.7 option selected
Reorganizes port, rewrapps pkg-descr too.
This uses a new distribution file from GitHub but for some reason
the version number didn't change.

PR:		200300
Submitted by:	ports fury
2015-10-16 14:51:05 +00:00

12 lines
506 B
C++

--- src/menuspec.cpp.orig 2013-10-03 09:22:51 UTC
+++ src/menuspec.cpp
@@ -616,7 +616,8 @@ void MenuMgr::ReadPopupMenu(FXRegistry*r
memset(keyname,0, sizeof(keyname));
snprintf(keyname,sizeof(keyname)-1,"Command_%d", i+1);
if (reg->existingEntry(popup_sect,keyname)) {
- PopupCommands[i]=strdup(reg->readStringEntry(popup_sect,keyname));
+ const char*tmp=reg->readStringEntry(popup_sect,keyname);
+ PopupCommands[i]=strdup(tmp?tmp:"");
}
}
} else {