d944917e18
Add LICENSE Fix usage of PORTDOCS in plist, no bump required PR: ports/159173 Submitted by: Pedro Giffuni <giffunip@tutopia.com> [1] Approved by: tabthorpe (mentor)
39 lines
1,015 B
Text
39 lines
1,015 B
Text
--- src/lib/fte/device.c.orig 1993-07-30 02:09:59.000000000 +0000
|
|
+++ src/lib/fte/device.c 2011-07-26 23:17:58.000000000 +0000
|
|
@@ -14,6 +14,8 @@
|
|
#include "ftedefs.h"
|
|
#include "dgen.h"
|
|
|
|
+void com_alter_common(wordlist *wl, int do_model);
|
|
+
|
|
static wordlist *devexpand();
|
|
|
|
/*
|
|
@@ -576,6 +578,7 @@
|
|
com_alter_common(wl, 1);
|
|
}
|
|
|
|
+void
|
|
com_alter_common(wl, do_model)
|
|
wordlist *wl;
|
|
int do_model;
|
|
@@ -619,7 +622,7 @@
|
|
n2 = names;
|
|
}
|
|
|
|
- if (!n2 || !eq(n2->pn_op->op_name, "=")) {
|
|
+ if (!n2 || !n2->pn_op || !eq(n2->pn_op->op_name, "=")) {
|
|
fprintf(cp_err, "alter: don't understand \"%s\"\n", names->pn_name);
|
|
fprintf(cp_err, "usage: alter dev param = expression\n");
|
|
fprintf(cp_err, " or alter @dev[param] = expression\n");
|
|
@@ -661,7 +664,9 @@
|
|
}
|
|
|
|
dv = ft_evaluate(n2->pn_right);
|
|
- free_pnode(names);
|
|
+ /* prevent names from getting freed twice
|
|
+ Guenther Roehrich 22-Jan-99 */
|
|
+ /* free_pnode(names); */
|
|
if (!dv)
|
|
return;
|
|
if (dv->v_length < 1) {
|