From a87fd1bc7ba0cfaf0e6368724a849a05d99e3533 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 19 Apr 2016 20:34:53 -0400 Subject: driver: avoid '\0' when assigning a value to a character type. --- src/driver/slbt_driver_ctx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 42978d2..3a3aaea 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -214,7 +214,7 @@ static int slbt_split_argv( else if (argv[i][1] == 'o') { *targv++ = argv[i]; - if (argv[i][2] == '\0') + if (argv[i][2] == 0) *targv++ = argv[++i]; } @@ -231,7 +231,7 @@ static int slbt_split_argv( *targv++ = argv[i++]; *targv++ = argv[i]; - } else if ((argv[i][1] == 'R') && (argv[i][2] == '\0')) { + } else if ((argv[i][1] == 'R') && (argv[i][2] == 0)) { *targv++ = argv[i++]; *targv++ = argv[i]; @@ -304,7 +304,7 @@ static int slbt_init_host_params( return -1; slash = strrchr(drvhost->host,'-'); - *slash = '\0'; + *slash = 0; host->host = drvhost->host; cfgmeta->host = cfgcompiler; fcompiler = true; @@ -616,7 +616,7 @@ static int slbt_init_link_params(struct slbt_driver_ctx_impl * ctx) return -1; dot = strrchr(ctx->libname,'.'); - *dot = '\0'; + *dot = 0; ctx->cctx.libname = ctx->libname; -- cgit v1.2.3