]> git.sesse.net Git - vlc/blobdiff - modules/visualization/galaktos/preset.c
Test pointers against NULL instead of 0.
[vlc] / modules / visualization / galaktos / preset.c
index cbb1046da27022fcbdc4133436ec17c4c235d3c5..e7aea345ddb48ca71c10b8c33d2c4578712eb47d 100644 (file)
@@ -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;    
   }