[GRASS-git] [OSGeo/grass] 3c7e0c: d.graph: Remove an always true condition (#2296)

Loïc Bartoletti noreply at github.com
Thu Apr 7 20:27:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 3c7e0c5e8d7ba19876083f0a8f23c59d98f06e6a
      https://github.com/OSGeo/grass/commit/3c7e0c5e8d7ba19876083f0a8f23c59d98f06e6a
  Author: Loïc Bartoletti <lbartoletti at users.noreply.github.com>
  Date:   2022-04-07 (Thu, 07 Apr 2022)

  Changed paths:
    M display/d.graph/do_graph.c

  Log Message:
  -----------
  d.graph: Remove an always true condition (#2296)

The function returns if `num < coors_allocated` and since `to_alloc` is assigned with `coors_allocated`, the removed condition is always true and thus useless. So, we can directly assign `to_alloc` with `num + CHUNK`.




More information about the grass-commit mailing list