Ticket #402 (new defect)

Opened 8 years ago

questionable initialization in src/reporting/nq2gif/main.c

Reported by: baker Owned by: somebody
Priority: minor Milestone: All Platforms
Component: ALL modules Version: 7.8
Keywords: nq2gif Cc:


main.c has the same questionable initialization as src/display/heli_ewII/heli_ewII.c (ticket #400).

The fix is to make the char* cmo[] array a const char* cmo[] array:

--- src/reporting/nq2gif/main.c
+++ src/reporting/nq2gif/main.c 
@@ -1442,4 +1442,4 @@
-    char *cmo[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun",
-                   "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
+    const char *cmo[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun",
+                         "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
     struct Greg  g;
Note: See TracTickets for help on using tickets.