Changeset 6424 for trunk/Ohana/src/opihi/lib.shell/variable.c
- Timestamp:
- Feb 13, 2006, 9:27:46 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/variable.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/variable.c
r6327 r6424 103 103 104 104 int i; 105 char *local, *MacroName ;105 char *local, *MacroName, *value; 106 106 107 107 if (name == NULL) return (NULL); … … 111 111 /* return a string which should not be freed */ 112 112 if (*name == '?') { 113 value = get_variable_ptr ( name[1]);113 value = get_variable_ptr (&name[1]); 114 114 if (value == NULL) { 115 115 return variable_false; … … 152 152 /* return a string which can be freed */ 153 153 if (*name == '?') { 154 value = get_variable_ptr ( name[1]);154 value = get_variable_ptr (&name[1]); 155 155 if (value == NULL) { 156 156 value = strcreate (variable_false);
Note:
See TracChangeset
for help on using the changeset viewer.
