X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=string.c;h=fb23d93b29081eb549e4112d0c60f2600c93e9ed;hp=e5670f8c66e932f1a617301d0fe6fe7b793fa795;hb=59e83bcfc11c56094c3d02c78c36556ac1fca5ae;hpb=c77e8ad08e743b3922c58f40cc7b1a063d291d69 diff --git a/string.c b/string.c index e5670f8..fb23d93 100644 --- a/string.c +++ b/string.c @@ -220,7 +220,7 @@ __must_check int atoi64(const char *str, int64_t *result) * \param argv_ptr Pointer to the list of substrings. * \param delim Delimiter. * - * This function modifies \a args by replacing each occurance of \a delim by + * This function modifies \a args by replacing each occurrence of \a delim by * zero. A \p NULL terminated array of pointers to char* is allocated dynamically * and these pointers are initialized to point to the broken-up substrings * within \a args. A pointer to this array is returned via \a argv_ptr. @@ -229,7 +229,7 @@ __must_check int atoi64(const char *str, int64_t *result) */ unsigned split_args(char *args, char *** const argv_ptr, const char *delim) { - char *p = args; + char *p; char **argv; size_t n = 0, i, j;