Commit 5e095a91 authored by Claes Sjofors's avatar Claes Sjofors

Ge value dynamics, fix to avoid segfault when type is not specifed (refs #45)

parent 17a3b274
......@@ -4381,8 +4381,10 @@ graph_eDatabase Graph::parse_attr_name( char *name, char *parsed_name,
if ( (s = strstr( str, "##")))
string_to_type( s + 2, (pwr_eType *)type, size, &elements);
else
else {
*type = pwr_eType__;
*size = 0;
}
if ( (s = strchr( str, '#'))) {
*s = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment