From ccec8d8de66189afbc3400e550ff8c5afe3bb734 Mon Sep 17 00:00:00 2001 From: "David M. Syzdek" Date: Mon, 21 Mar 2022 18:28:31 -0800 Subject: libtinyrad: adding missing debug statements to lstrings.c --- lib/libtinyrad/lstrings.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib') diff --git a/lib/libtinyrad/lstrings.c b/lib/libtinyrad/lstrings.c index 54c3b93..3537f6b 100644 --- a/lib/libtinyrad/lstrings.c +++ b/lib/libtinyrad/lstrings.c @@ -94,6 +94,7 @@ tinyrad_strdup( { char * ptr; size_t len; + TinyRadDebugTrace(); if (!(s1)) return(NULL); len = strlen(s1); @@ -124,6 +125,7 @@ tinyrad_strexpand( struct group grp; struct group * grres; + TinyRadDebugTrace(); assert(dst != NULL); assert(len > 0); @@ -328,6 +330,7 @@ tinyrad_strlcpy( size_t dstsize ) { size_t len; + TinyRadDebugTrace(); assert(dst != NULL); assert(src != NULL); assert(dstsize > 0); @@ -348,6 +351,7 @@ tinyrad_strlcat( size_t pos; size_t offset; size_t len; + TinyRadDebugTrace(); assert(dst != NULL); assert(src != NULL); assert(dstsize > 0); @@ -368,6 +372,7 @@ tinyrad_strndup( { char * ptr; size_t len; + TinyRadDebugTrace(); if (!(s1)) return(NULL); len = strlen(s1); @@ -507,6 +512,8 @@ tinyrad_strsplit( char * line; char * bol; + TinyRadDebugTrace(); + assert(str != NULL); assert(delim != 0); assert(argvp != NULL); @@ -578,6 +585,8 @@ tinyrad_strtoargs( int rc; int eol; + TinyRadDebugTrace(); + assert(str != NULL); argv = NULL; @@ -675,6 +684,8 @@ tinyrad_strtrim( ssize_t offset; ssize_t pos; + TinyRadDebugTrace(); + if (!(str)) return(str); -- cgit v1.2.3