commit fac14d4552cac3da8127d0d202bc375a085930ab
parent af5b380c605d58d41d894a21feb939c8cd8070eb
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 29 Jun 2018 11:06:59 +0200
Fix an error handling on the creation of the htcp device
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/htcp.c b/src/htcp.c
@@ -238,9 +238,9 @@ htcp_create
if(verbose) {
logger_print(logger, LOG_ERROR,
"%s: could not allocate the HTCP handler.\n", FUNC_NAME);
- res = RES_MEM_ERR;
- goto error;
}
+ res = RES_MEM_ERR;
+ goto error;
}
ref_init(&htcp->ref);
htcp->allocator = allocator;
diff --git a/src/htcp.h b/src/htcp.h
@@ -70,10 +70,10 @@ BEGIN_DECLS
******************************************************************************/
HTCP_API res_T
htcp_create
-(struct logger* logger, /* NULL <=> use default logger */
- struct mem_allocator* allocator, /* NULL <=> use default allocator */
- const int verbose, /* Verbosity level */
- struct htcp** htcp);
+ (struct logger* logger, /* NULL <=> use default logger */
+ struct mem_allocator* allocator, /* NULL <=> use default allocator */
+ const int verbose, /* Verbosity level */
+ struct htcp** htcp);
HTCP_API res_T
htcp_load