aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cbs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cbs.h b/cbs.h
index 872915b..25cc47b 100644
--- a/cbs.h
+++ b/cbs.h
@@ -59,7 +59,9 @@
/* Struct representing a CLI command that various functions act on. You will
basically always want to zero-initialize variables of this type before use.
- */
+
+ After adding arguments to this command via cmdadd() and cmdaddv(), make sure
+ to free() the .argv field BEFORE calling cmdclr(). */
struct cmd {
char **argv;
size_t len, cap;