Commit 4cc4599a authored by Lev Walkin's avatar Lev Walkin

more diagnostics if memory fails

parent 13e57efb
......@@ -549,6 +549,7 @@ generate_pdu_C_definition(void) {
char *dst;
if(pduTypes == 0) return "";
def = malloc(strlen(pduType[0].typename) + 20);
assert(def);
strcpy(def, " -DPDU=");
for(src = pduType[0].typename, dst = def + 7; *src; src++, dst++)
if((*dst = *src) == '-')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment