Changeset b75a8ac
- Timestamp:
- Jun 27, 2011, 4:28:52 AM (14 years ago)
- Children:
- 554787e8
- Parents:
- 0d935a1
- git-author:
- Jason Gross <jgross@mit.edu> (06/27/11 04:14:36)
- git-committer:
- Jason Gross <jgross@mit.edu> (06/27/11 04:28:52)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
variable.c
r0d935a1 rb75a8ac 940 940 { 941 941 if (val == NULL) { 942 return g_strdup("<null>");942 return NULL; 943 943 } else if (*(const int*)val == 0) { 944 944 return g_strdup("off"); … … 976 976 { 977 977 if (val == NULL) { 978 return g_strdup("<null>");978 return NULL; 979 979 } else { 980 980 return g_strdup_printf("%d", *(const int*)val); … … 1020 1020 1021 1021 if (val == NULL) { 1022 return g_strdup("<null>");1022 return NULL; 1023 1023 } 1024 1024 enums = g_strsplit_set(v->validsettings, ",", 0); … … 1056 1056 CALLER_OWN char *owl_variable_string_get_tostring_default(const owl_variable *v, const void *val) 1057 1057 { 1058 if (val == NULL) { 1059 return g_strdup("<null>"); 1060 } else { 1061 return g_strdup((const char*)val); 1062 } 1063 } 1064 1058 return g_strdup((const char*)val); 1059 } 1060
Note: See TracChangeset
for help on using the changeset viewer.