ports/audio/spiralsynthmodular/files/patch-SpiralSound_Plugins_PoshSamplerPlugin_PoshSamplerPluginGUI.C
Tobias Kortkamp 3d93b5ef60 audio/spiralsynthmodular: Fix build with Clang 6
SpiralSynthModular.C:1016:14: error: comparison between pointer and integer ('char *' and 'int')
        if (fn && fn!='\0')
                  ~~^ ~~~~

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/spiralsynthmodular-0.2.2a_9.log
2018-08-01 06:04:56 +00:00

20 lines
682 B
C

--- SpiralSound/Plugins/PoshSamplerPlugin/PoshSamplerPluginGUI.C.orig 2018-08-01 05:59:24 UTC
+++ SpiralSound/Plugins/PoshSamplerPlugin/PoshSamplerPluginGUI.C
@@ -502,7 +502,7 @@ inline void PoshSamplerPluginGUI::cb_Load_i(Fl_Button*
{
char *fn=fl_file_chooser("Load a sample", "{*.wav,*.WAV}", NULL);
- if (fn && fn!='\0')
+ if (fn && *fn!='\0')
{
strcpy(m_TextBuf,fn);
m_GUICH->SetData("Name",m_TextBuf);
@@ -523,7 +523,7 @@ inline void PoshSamplerPluginGUI::cb_Save_i(Fl_Button*
{
char *fn=fl_file_chooser("Save sample", "{*.wav,*.WAV}", NULL);
- if (fn && fn!='\0')
+ if (fn && *fn!='\0')
{
strcpy(m_TextBuf,fn);
m_GUICH->Set("Name",m_TextBuf);