summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/workflow.txt4
1 files changed, 2 insertions, 2 deletions
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