Repositories » libk0
Clone URL:  
Pushed to one repository · View In Graph Contained in v0.1 and tip

v0.1 freebuffer rewritten

Changeset b4bc867c5234

Parent 0f27e487277b

by Rup Palchowdhury

Changes to one file · Browse files at b4bc867c5234 Showing diff from parent 0f27e487277b Diff from another changeset...

Change 1 of 1 Show Entire File kbuffer.c Stacked
 
54
55
56
57
58
59
60
61
62
 
 
 
 
 
63
 
54
55
56
 
 
 
 
 
 
57
58
59
60
61
62
@@ -54,10 +54,9 @@
   void freebuffer(Buffer *buf)  { - if (buf != NULL) { - buf->p = NULL; - if (buf->b != NULL) - free(buf->b); - free(buf); - } + if (buf == NULL) + return; + buf->p = NULL; + free(buf->b); + free(buf);  }