From: Wolfgang Bumiller Date: Sun, 1 Feb 2015 11:13:22 +0000 (+0100) Subject: fix std::string constructed from nullptr X-Git-Tag: xonotic-v0.8.2~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fd0cc40b9c026d09fe17c07ac6723311ea98a1c9;p=xonotic%2Fgmqcc.git fix std::string constructed from nullptr --- diff --git a/fold.cpp b/fold.cpp index 81c6c3f..658ec38 100644 --- a/fold.cpp +++ b/fold.cpp @@ -1073,7 +1073,7 @@ ast_expression *fold::op_mul_vec(vec3_t vec, ast_value *sel, const char *set) { if (!y && !z) { ast_expression *out; ++opts_optimizationcount[OPTIM_VECTOR_COMPONENTS]; - out = ast_member::make(ctx(), (ast_expression*)sel, set[0]-'x', nullptr); + out = ast_member::make(ctx(), (ast_expression*)sel, set[0]-'x', ""); out->m_keep_node = false; ((ast_member*)out)->m_rvalue = true; if (x != -1.0f)