summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-19 20:34:53 -0400
committermidipix <writeonce@midipix.org>2016-04-19 20:40:26 -0400
commita87fd1bc7ba0cfaf0e6368724a849a05d99e3533 (patch)
treef165a5b9cadd1507bb5f4630525c8bc490f50dc1
parent869ddd8692a2b296eab0376d8c33c21244cc2857 (diff)
downloadslibtool-a87fd1bc7ba0cfaf0e6368724a849a05d99e3533.tar.bz2
slibtool-a87fd1bc7ba0cfaf0e6368724a849a05d99e3533.tar.xz
driver: avoid '\0' when assigning a value to a character type.
-rw-r--r--src/driver/slbt_driver_ctx.c8
1 files 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;