Ticket #401 (new defect)

Opened 8 years ago

questionable initialization in src/display/sgram/sgram.c

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


sgram.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/display/sgram/sgram.c
+++ src/display/sgram/sgram.c   
@@ -3054,4 +3054,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.