harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r486664 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/vm_properties.cpp
Date Wed, 13 Dec 2006 14:14:24 GMT
Author: varlax
Date: Wed Dec 13 06:14:23 2006
New Revision: 486664

URL: http://svn.apache.org/viewvc?view=rev&rev=486664
Log:
Fixed setting flag properties like "-Dfoo", with empty value.

Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/vm_properties.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/vm_properties.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/vm_properties.cpp?view=diff&rev=486664&r1=486663&r2=486664
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/vm_properties.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/vm_properties.cpp Wed Dec 13 06:14:23
2006
@@ -367,6 +367,10 @@
                 *tok = '\0';
                 p_env->JavaProperties()->set(unquote(src), unquote(tok + 1));
             }
+            else 
+            {
+                p_env->JavaProperties()->set(unquote(src), "");
+            }
             STD_FREE(src);
         } 
         else if (strncmp(option, "-XD", 3) == 0)
@@ -379,6 +383,11 @@
                 *tok = '\0';
                 p_env->VmProperties()->set(unquote(src), unquote(tok + 1));
             }
+            else 
+            {
+                p_env->VmProperties()->set(unquote(src), "");
+            }
+
             STD_FREE(src);
         }
     }



Mime
View raw message