Skip to content

Commit

Permalink
Trivial reformat
Browse files Browse the repository at this point in the history
It is tempting here to defer the creation of the canvas until
after the parsing checks.  It is not clear if this matters
at all.
  • Loading branch information
wrp committed Jul 23, 2023
1 parent ada9b91 commit f41c31f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smtx-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,10 +528,10 @@ add_canvas(const char **lp, double oy, double ox, double ey, double ex,
{
double y, x;
int e;
struct pty *p;
struct canvas *n;
struct pty *p = *pp;
if(
(n = newcanvas(p = *pp, parent)) == NULL
(n = newcanvas(p, parent)) == NULL
|| n->p == NULL
|| ! check(2 == sscanf(*lp, "%lf%*1[,:]%lf%n", &y, &x, &e),
errno = 0, "Invalid format at %s", **lp ? *lp : "end")
Expand Down

0 comments on commit f41c31f

Please sign in to comment.