Changeset 1000
- Timestamp:
- 07/07/07 13:12:34 (1 year ago)
- Files:
-
- 1.8.2/branches/devel/src/utils.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
1.8.2/branches/devel/src/utils.c
r999 r1000 688 688 ATTR *a = atr_get_noparent(it, "ALIAS"); 689 689 690 if (!a) 691 return '\0'; 690 if (!a) { 691 n[0] = '\0'; 692 return n; 693 } 692 694 693 695 strncpy(n, atr_value(a), BUFFER_LEN - 1); … … 709 711 710 712 s = fullalias(it); 711 if (!(s && *s)) 712 return '\0'; 713 if (!(s && *s)) { 714 n[0] = '\0'; 715 return n; 716 } 713 717 714 718 strncpy(n, s, BUFFER_LEN - 1);
