Check-in Number:
|
1376 | |
Date: |
2001-Nov-20 13:24:53 (local)
2001-Nov-20 12:24:53 (UTC) |
User: | thl |
Branch: | |
Comment: |
THLs review |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/var/var.c 1.29 -> 1.30
--- var.c 2001/11/20 12:22:42 1.29
+++ var.c 2001/11/20 12:24:53 1.30
@@ -1245,7 +1245,7 @@
case 'l': /* Turn data to lowercase. */
if (data->begin) {
char *ptr;
- /* If the buffer does not life in an allocated buffer,
+ /* If the buffer does not live in an allocated buffer,
we have to copy it before modifying the contents. */
if (data->buffer_size == 0) {
@@ -1283,12 +1283,11 @@
if (rc == 0) {
rc = VAR_ERR_MISSING_START_OFFSET;
goto error_return;
- } else {
- number1.begin = p;
- number1.end = p + rc;
- number1.buffer_size = 0;
- p += rc;
}
+ number1.begin = p;
+ number1.end = p + rc;
+ number1.buffer_size = 0;
+ p += rc;
if (*p == ',') {
isrange = 0;
|
|