dtcm: Resolve CID 87562
[oweals/cde.git] / cde / programs / dtcm / dtcm / x_graphics.c
index d65b9883c968771902d0887f43ae285228d4375e..bfee10c797d1d6942c8f96909e463430529759a9 100644 (file)
@@ -1677,7 +1677,7 @@ cm_count_appts(CMGraphicsInfo *gInfo, CSA_entry_handle *list, int a_total,
     if (stat != CSA_SUCCESS)
     {
       free_appt_struct(&appt);
-      return;
+      return 0;
     }
     skip_appt = B_FALSE;
 
@@ -2228,6 +2228,8 @@ x_open_file(Calendar *c)
                            NULL, 0);
 #endif
 
+#if defined(PRINTING_SUPPORTED)
+
 #ifdef GR_DEBUG
   if (!inDebugMode(c))
   {
@@ -2262,6 +2264,8 @@ x_open_file(Calendar *c)
 #ifdef GR_DEBUG
   }
 #endif
+#endif  /* PRINTING_SUPPORTED */
+
 
   nargs = 0;
 #ifdef SHELL_SIZE_BUG
@@ -2883,7 +2887,7 @@ x_print_multi_appts(void *gInfoP,
     /* HH:MM xm - HH:MM xm format */
     format_line2(appt, buf1, buf2, dt);
 
-    indented = (*buf1 != NULL);
+    indented = (*buf1 != '\0');
     indentAmt = (view == dayGlance) ? 0 : 1;
     if (indented)
       indentAmt += 2;
@@ -2988,7 +2992,7 @@ x_print_list_range(Calendar *c, CSA_sint32 appt_type, int item_data,
                                     "Appt List Beginning: %s"), buf2);
 
        setup_range(&range_attrs, &ops, &i, start, end, appt_type,
-                   NULL, B_FALSE, c->general->version);
+                   0, B_FALSE, c->general->version);
        stat = csa_list_entries(c->cal_handle, i, range_attrs,
                                ops, &a_total, &list, NULL);
        if (stat != CSA_SUCCESS) {
@@ -3935,7 +3939,7 @@ x_print_month_appts(void *gInfoP, CSA_entry_handle *list,
     {
       get_time_str(appt, buf1);
 
-      indented = (*buf1 != NULL);
+      indented = (*buf1 != '\0');
 
       lines = text_to_lines(appt->what->value->item.string_value, 1);
       line_counter++;