Package: qfits / 6.2.0-8

05-frameq-nofile.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- qfits-6.2.0.orig/main/frameq.c
+++ qfits-6.2.0/main/frameq.c
@@ -463,10 +463,12 @@ int main(int argc, char * argv[])
     
     printf("loading frames from %s...\n", argv[1]);
     fq = frameq_load(argv[1]);
-    printf("processing lists...\n");
-    frameq_makelists(fq);
-    frameq_del(fq);
-    printf("done\n");
+    if (fq) {
+        printf("processing lists...\n");
+        frameq_makelists(fq);
+        frameq_del(fq);
+        printf("done\n");
+    }
 
     return 0 ;
 }