epicsReadline: ensure readline context is zero'd
Otherwise ->osd != NULL for the default RTEMS readline impl
This commit is contained in:
committed by
Andrew Johnson
parent
f1b403b59a
commit
02ac91aa2a
@@ -59,7 +59,7 @@ static void osdReadlineEnd(struct readlineContext * c) {}
|
||||
void * epicsShareAPI
|
||||
epicsReadlineBegin(FILE *in)
|
||||
{
|
||||
struct readlineContext *readlineContext = malloc(sizeof *readlineContext);
|
||||
struct readlineContext *readlineContext = calloc(1, sizeof(*readlineContext));
|
||||
|
||||
if (readlineContext) {
|
||||
readlineContext->in = in;
|
||||
|
||||
Reference in New Issue
Block a user