From 223813bbd609d929537b9f3f54bf4eec99d7663b Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 26 Feb 2016 22:49:25 +0100 Subject: doc: fixed example code in workflow doc --- doc/workflow.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/workflow.txt') diff --git a/doc/workflow.txt b/doc/workflow.txt index 0f59b4bf..a829192b 100644 --- a/doc/workflow.txt +++ b/doc/workflow.txt @@ -23,9 +23,9 @@ int *a; - Don't explicitly cast malloc, but do -your * = malloc (sizeof (*your) * len); +ptr = malloc (sizeof(*ptr) * len); or -your * = malloc (sizeof *your * len); +ptr = malloc (sizeof *ptr * len); - When checking for invalid pointers use -- cgit v1.2.3