Changeset 92fd52d7 in mainline for uspace/app/bdsh/input.c
- Timestamp:
- 2009-04-09T21:16:50Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7afb4a5
- Parents:
- a2c58f6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/input.c
ra2c58f6 r92fd52d7 147 147 { 148 148 char line[INPUT_MAX]; 149 size_t len = 0;150 149 151 150 console_set_style(STYLE_EMPHASIS); … … 154 153 155 154 read_line(line, INPUT_MAX); 156 len = strlen(line);157 155 /* Make sure we don't have rubbish or a C/R happy user */ 158 if ( len == 0 || line[0] == '\n')156 if (str_cmp(line, "") == 0 || str_cmp(line, "\n") == 0) 159 157 return; 160 158 usr->line = strdup(line);
Note:
See TracChangeset
for help on using the changeset viewer.