diff --git a/configure.ac b/configure.ac index a07e6e5..75153c7 100644 --- a/configure.ac +++ b/configure.ac @@ -7,7 +7,7 @@ AC_PREREQ([2.68]) # Initialize package -AC_INIT([fmt], [1.3.1], [fmt@guillermo.in], [fmt], [https://github.com/guillermocalvo/fmt/]) +AC_INIT([fmt], [1.3.2], [fmt@guillermo.in], [fmt], [https://github.com/guillermocalvo/fmt/]) # Information on the package diff --git a/package.json b/package.json index 727f520..a210957 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fmt", - "version": "1.3.1", + "version": "1.3.2", "description": "A tiny C string formatting library", "repo": "guillermocalvo/fmt", "license": "LGPL", diff --git a/src/fmt.c b/src/fmt.c index 841bc33..8859537 100644 --- a/src/fmt.c +++ b/src/fmt.c @@ -4,7 +4,7 @@ * * fmt source code file * - * @version 1.3.1 + * @version 1.3.2 * @author Copyright (c) 2017 Guillermo Calvo * */ @@ -288,10 +288,10 @@ int fmt_print_builtin(struct fmt_stream * out, const char * format, ...){ int written; va_list arg; - va_start(arg, format); - if( !IS_READY(out) ){ return(FMT_ERROR); } + va_start(arg, format); + if( IS_FILE(out) ){ written = vfprintf(out->file, format, arg); diff --git a/src/fmt.h b/src/fmt.h index 32f4a04..dd85ffe 100644 --- a/src/fmt.h +++ b/src/fmt.h @@ -4,7 +4,7 @@ * * fmt header file * - * @version 1.3.1 + * @version 1.3.2 * @author Copyright (c) 2017 Guillermo Calvo * */