aboutsummaryrefslogtreecommitdiff
path: root/src/driver/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/main.cc')
-rw-r--r--src/driver/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/main.cc b/src/driver/main.cc
index 3d8431b6..cf9233bc 100644
--- a/src/driver/main.cc
+++ b/src/driver/main.cc
@@ -64,7 +64,7 @@ namespace OpenAxiom {
augment_variable(const char* name, const char* value) {
const char* oldval = oa_getenv(name);
const int value_length = strlen(value);
- const int oldval_length = oldval == 0 ? 0 : strlen(oldval);
+ const int oldval_length = oldval == nullptr ? 0 : strlen(oldval);
const int newval_length = value_length + 1 + oldval_length;
char* newval = (char*) malloc(newval_length + 1);
@@ -86,7 +86,7 @@ namespace OpenAxiom {
augment_variable("BIBINPUTS",
oa_concatenate_string(sysdir, OPENAXIOM_BIBINPUTS_PATH));
const char* ldd_path = option_value(command, "--syslib");
- if (ldd_path == 0)
+ if (ldd_path == nullptr)
ldd_path = oa_concatenate_string(sysdir, "/lib");
#ifdef OPENAXIOM_MS_WINDOWS_HOST
augment_variable("PATH", ldd_path);