Text   |  XML   |  ReML   |   Visible Warnings:

Useless Assignment  at tcp_graph.c:1573

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

graph_new

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/tcp_graph.c)expand/collapse
Show more  
 1566  static struct graph *graph_new (void)
 1567  {
 1568          struct graph *g;
 1569   
 1570          g = (struct graph * )g_malloc0 (sizeof (struct graph));
 1571          graph_element_lists_initialize (g);
 1572   
 1573          g->x_axis = (struct axis * )g_malloc0 (sizeof (struct axis));
 1574          g->y_axis = (struct axis * )g_malloc0 (sizeof (struct axis));
 1575          g->x_axis->g = g;
 1576          g->x_axis->flags = 0;
 1577          g->x_axis->flags |= AXIS_ORIENTATION;
 1578          g->x_axis->s.x = g->x_axis->s.y = 0;
 1579          g->x_axis->s.height = HAXIS_INIT_HEIGHT;
 1580          g->x_axis->p.x = VAXIS_INIT_WIDTH;
 1581          g->x_axis->p.height = HAXIS_INIT_HEIGHT;
 1582          g->y_axis->g = g;
 1583          g->y_axis->flags = 0;
 1584          g->y_axis->flags &= ~AXIS_ORIENTATION;
 1585          g->y_axis->p.x = g->y_axis->p.y = 0;
 1586          g->y_axis->p.width = VAXIS_INIT_WIDTH;
 1587          g->y_axis->s.x = 0;
 1588          g->y_axis->s.y = TITLEBAR_HEIGHT;
 1589          g->y_axis->s.width = VAXIS_INIT_WIDTH;
 1590   
 1591          return g;
 1592  }
Show more  




Change Warning 12259.29700 : Useless Assignment

Priority:
State:
Finding:
Owner:
Note: