Soft'N'Design Software
/
projects
/
calc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0361f81
)
remove unecessary allocation
author
Laurent Mazet
<mazet@softndesign.org>
Tue, 14 Feb 2023 22:24:04 +0000
(23:24 +0100)
committer
Laurent Mazet
<mazet@softndesign.org>
Tue, 14 Feb 2023 22:24:04 +0000
(23:24 +0100)
program.c
patch
|
blob
|
blame
|
history
diff --git
a/program.c
b/program.c
index 43e7b9224437cf5f2722124640daa384b25fb729..dc433aa57ec969f2111aae27f46c526e325cdf73 100644
(file)
--- a/
program.c
+++ b/
program.c
@@
-100,13
+100,8
@@
double call (int id, int nbargs, element_t **args)
delelement (elements);
/* clean arguments */
- if (argument) {
- free_tab (argument);
- }
+ free_tab (argument);
argument = NULL;
- if (nbargs > 0) {
- def (nbargs, args);
- }
/* restore context */
backup_ws (programs[n]);