CVSROOT: /sources/hurdextras
Module name: httpfs
Changes by: Samuel Thibault <sthibaul> 23/10/03 15:38:58
Modified files:
. : node.c
Log message:
Fix build
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/httpfs/node.c?cvsroot=hurdextras&r1=1.2&r2=1.3
Patches:
Index: node.c
===================================================================
RCS file: /sources/hurdextras/httpfs/node.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- node.c 2 Jan 2017 20:16:27 -0000 1.2
+++ node.c 3 Oct 2023 19:38:58 -0000 1.3
@@ -58,14 +58,16 @@
/* free an instance of `struct netnode' */
void free_netnode (struct netnode *node) {
- struct node *nd;
+ struct node *nd, *next;
free (node->url);
free (node->conn_req);
free (node->comm_buf);
free (node->file_name);
- for (nd = node->ents; nd; nd = nd->next)
+ for (nd = node->ents; nd; nd = next) {
+ next = nd->next;
free (nd);
+ }
}
/* make an instance of `struct node' with the specified parameters,
_______________________________________________
Hurdextras-commit mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/hurdextras-commit