mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
Merge "editline: Avoid comparison between pointer and zero character constant." into 13
This commit is contained in:
@@ -428,7 +428,7 @@ term_alloc(EditLine *el, const struct termcapstr *t, const char *cap)
|
|||||||
*/
|
*/
|
||||||
tlen = 0;
|
tlen = 0;
|
||||||
for (tmp = tlist; tmp < &tlist[T_str]; tmp++)
|
for (tmp = tlist; tmp < &tlist[T_str]; tmp++)
|
||||||
if (*tmp != NULL && *tmp != '\0' && *tmp != *str) {
|
if (*tmp != NULL && **tmp != '\0' && *tmp != *str) {
|
||||||
char *ptr;
|
char *ptr;
|
||||||
|
|
||||||
for (ptr = *tmp; *ptr != '\0'; termbuf[tlen++] = *ptr++)
|
for (ptr = *tmp; *ptr != '\0'; termbuf[tlen++] = *ptr++)
|
||||||
|
|||||||
Reference in New Issue
Block a user