From: Jonathan McDowell Date: Mon, 20 Sep 2004 14:33:18 +0000 (+0000) Subject: Add assert for invalid armor parameters. X-Git-Tag: 0.3.1~23 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=bdada0eacc11f6cfbf3256556d86282a0124ab26;p=onak.git Add assert for invalid armor parameters. Add an assert if we had a NULL string to the armor_putchar function. Brett spotted this while doing evil things. --- diff --git a/armor.c b/armor.c index 6bb77d8..bb0085e 100644 --- a/armor.c +++ b/armor.c @@ -188,6 +188,8 @@ static int armor_putchar(void *ctx, size_t count, unsigned char *c) { int i; + log_assert(c != NULL); + for (i = 0; i < count; i++) { armor_putchar_int(ctx, c[i]); }