]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
fix std::string constructed from nullptr
authorWolfgang Bumiller <wry.git@bumiller.com>
Sun, 1 Feb 2015 11:13:22 +0000 (12:13 +0100)
committerWolfgang Bumiller <wry.git@bumiller.com>
Sun, 1 Feb 2015 11:13:22 +0000 (12:13 +0100)
fold.cpp

index 81c6c3ff0eba3c4af298a7fa77a61fd248a3a122..658ec382e342d10ce2ed91e2be611d0acd82eed6 100644 (file)
--- 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)