aboutsummaryrefslogtreecommitdiffstats
path: root/common/readline.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-07-09 16:28:37 -0700
committerLibravatar GitHub <noreply@github.com>2018-07-09 16:28:37 -0700
commit6fd9a2bfd6f7d56dc8ed9fc40d80844cc84df107 (patch)
tree7d89592bcfb1adc10ded38d2f8d09d134ddd34fe /common/readline.c
parentDocument `focus floating|tiling` (diff)
parentMerge pull request #2234 from emersion/wlr-log-prefix (diff)
downloadsway-6fd9a2bfd6f7d56dc8ed9fc40d80844cc84df107.tar.gz
sway-6fd9a2bfd6f7d56dc8ed9fc40d80844cc84df107.tar.zst
sway-6fd9a2bfd6f7d56dc8ed9fc40d80844cc84df107.zip
Merge branch 'master' into focus-mode-toggle
Diffstat (limited to 'common/readline.c')
-rw-r--r--common/readline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/readline.c b/common/readline.c
index 1c396a90..a2c69018 100644
--- a/common/readline.c
+++ b/common/readline.c
@@ -9,7 +9,7 @@ char *read_line(FILE *file) {
9 char *string = malloc(size); 9 char *string = malloc(size);
10 char lastChar = '\0'; 10 char lastChar = '\0';
11 if (!string) { 11 if (!string) {
12 wlr_log(L_ERROR, "Unable to allocate memory for read_line"); 12 wlr_log(WLR_ERROR, "Unable to allocate memory for read_line");
13 return NULL; 13 return NULL;
14 } 14 }
15 while (1) { 15 while (1) {
@@ -30,7 +30,7 @@ char *read_line(FILE *file) {
30 char *new_string = realloc(string, size *= 2); 30 char *new_string = realloc(string, size *= 2);
31 if (!new_string) { 31 if (!new_string) {
32 free(string); 32 free(string);
33 wlr_log(L_ERROR, "Unable to allocate memory for read_line"); 33 wlr_log(WLR_ERROR, "Unable to allocate memory for read_line");
34 return NULL; 34 return NULL;
35 } 35 }
36 string = new_string; 36 string = new_string;