summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2023-05-11 22:23:53 +0200
committerAlbert Cervin <albert@acervin.com>2023-05-11 22:23:53 +0200
commit74f4ec2a181a28a3b787cee0dc8e9ea74f50a8f8 (patch)
tree2e6e4984b6104409fce3465e68cf76f65a09b801 /src/main
parent870286d0efb8e39acfb674aa6a1e94d39ea38091 (diff)
downloaddged-74f4ec2a181a28a3b787cee0dc8e9ea74f50a8f8.tar.gz
dged-74f4ec2a181a28a3b787cee0dc8e9ea74f50a8f8.tar.xz
dged-74f4ec2a181a28a3b787cee0dc8e9ea74f50a8f8.zip
Fix write to file when no changes
A change of which file to write to was not considered a "change", thus not actually writing the file to disk since it was already "saved".
Diffstat (limited to 'src/main')
-rw-r--r--src/main/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/main.c b/src/main/main.c
index 59a9a59..b14c6c0 100644
--- a/src/main/main.c
+++ b/src/main/main.c
@@ -20,7 +20,7 @@
#include "bindings.h"
#include "cmds.h"
-struct frame_allocator frame_allocator;
+static struct frame_allocator frame_allocator;
void *frame_alloc(size_t sz) {
return frame_allocator_alloc(&frame_allocator, sz);