findobj mode/xlat/scale/rotate, save backup shortcut, undo limit bug, title boundary...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / mwindow.C
index 202a7687d073b3e4c0202258fe48942ca3e0f3da..6150f954131af90569483dc305304075ff4c09d8 100644 (file)
@@ -2275,10 +2275,9 @@ void MWindow::init_shm(const char *pfn, int64_t min)
        }
 
        fd = fopen(pfn, "w");
-       if( fd ) {
-               fprintf(fd, "0x%jx", min);
-               fclose(fd);
-       }
+       if( !fd ) return;
+       fprintf(fd, "0x%jx", min);
+       fclose(fd);
 
        fd = fopen(pfn, "r");
        if( !fd ) {