X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvisualization%2Fgalaktos%2Fpreset.c;h=e7aea345ddb48ca71c10b8c33d2c4578712eb47d;hb=a804eaa4782f3f8a384c19a223383be309e62023;hp=cbb1046da27022fcbdc4133436ec17c4c235d3c5;hpb=a02b83a7477ed76d26451b14bc4ecc50ea9e21b0;p=vlc diff --git a/modules/visualization/galaktos/preset.c b/modules/visualization/galaktos/preset.c index cbb1046da2..e7aea345dd 100644 --- a/modules/visualization/galaktos/preset.c +++ b/modules/visualization/galaktos/preset.c @@ -522,7 +522,7 @@ int load_preset_file(char * pathname, preset_t * preset) { return FAILURE; /* Open the file corresponding to pathname */ - if ((fs = utf8_fopen(pathname, "r")) == 0) { + if ((fs = utf8_fopen(pathname, "r")) == NULL) { if (PRESET_DEBUG) printf("load_preset_file: loading of file %s failed!\n", pathname); return ERROR; } @@ -793,7 +793,7 @@ void savePreset(char * filename) { return; /* Open the file corresponding to pathname */ - if ((fs = utf8_fopen(filename, "w+")) == 0) { + if ((fs = utf8_fopen(filename, "w+")) == NULL) { if (PRESET_DEBUG) printf("savePreset: failed to create filename \"%s\"!\n", filename); return; }