mirror of
https://git.freebsd.org/ports.git
synced 2025-05-03 03:56: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
11 lines
551 B
C
11 lines
551 B
C
--- SpiralSound/Plugins/StreamPlugin/StreamPluginGUI.C.orig 2018-08-01 06:01:08 UTC
|
|
+++ SpiralSound/Plugins/StreamPlugin/StreamPluginGUI.C
|
|
@@ -220,7 +220,7 @@ void StreamPluginGUI::cb_Pos (Fl_Slider* o, void* v) {
|
|
|
|
inline void StreamPluginGUI::cb_Load_i (Fl_Button* o, void* v) {
|
|
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 ("FileName", (void*)m_TextBuf);
|
|
m_GUICH->SetCommand (StreamPlugin::LOAD);
|