mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 10:36:38 -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
24 lines
667 B
C
24 lines
667 B
C
SpiralSynthModular.C:1016:14: error: comparison between pointer and integer ('char *' and 'int')
|
|
if (fn && fn!='\0')
|
|
~~^ ~~~~
|
|
|
|
--- SpiralSynthModular.C.orig 2018-08-01 05:55:58 UTC
|
|
+++ SpiralSynthModular.C
|
|
@@ -1013,7 +1013,7 @@ inline void SynthModular::cb_Load_i(Fl_Button* o, void
|
|
|
|
char *fn=fl_file_chooser("Load a patch", "*.ssm", NULL);
|
|
|
|
- if (fn && fn!='\0')
|
|
+ if (fn && *fn!='\0')
|
|
{
|
|
ifstream inf(fn);
|
|
|
|
@@ -1039,7 +1039,7 @@ inline void SynthModular::cb_Save_i(Fl_Button* o, void
|
|
{
|
|
char *fn=fl_file_chooser("Save a patch", "*.ssm", NULL);
|
|
|
|
- if (fn && fn!='\0')
|
|
+ if (fn && *fn!='\0')
|
|
{
|
|
ifstream ifl(fn);
|
|
if (ifl)
|