size_t buflen = *n;
char *buf = *lineptr;
- if (buflen >= linelen && buf != NULL) {
+ if (buflen >= linelen && buf) {
return buf;
}
- if (buf == NULL) {
+ if (!buf) {
buflen = BT_GETLINE_MINBUFLEN;
} else {
buflen = buflen << 1;
char *buf;
int found_eof = 0;
- if (lineptr == NULL || n == NULL) {
+ if (!lineptr || !n) {
errno = EINVAL;
return -1;
}