Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
one more buf fix to simdag prop
[simgrid.git] / examples / simdag / properties / sd_prop.c
index 842d3ac..843269c 100755 (executable)
@@ -111,7 +111,7 @@ int main(int argc, char **argv) {
     INFO3("\tLink %s property: %s has value: %s",SD_link_get_name(route[i]),key,data);
 
     /* Try to get a property that does not exist */
     INFO3("\tLink %s property: %s has value: %s",SD_link_get_name(route[i]),key,data);
 
     /* Try to get a property that does not exist */
-    char noexist1="Other";
+    char noexist1[]="Other";
     value = SD_link_get_property_value(route[i], noexist1);
     if ( value == NULL) 
       INFO2("\tProperty: %s for link %s is undefined", noexist, SD_link_get_name(route[i]));
     value = SD_link_get_property_value(route[i], noexist1);
     if ( value == NULL) 
       INFO2("\tProperty: %s for link %s is undefined", noexist, SD_link_get_name(route[i]));