mirror of
https://git.freebsd.org/ports.git
synced 2025-05-03 12:06:39 -04:00
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
20 lines
682 B
C
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);
|