Skip to content

Commit 44fcd81

Browse files
Fix asprintf_hd
1 parent d3920bb commit 44fcd81

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.clangd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
CompileFlags:
2-
CompilationDatabase: builddir/
2+
CompilationDatabase: builddir_kindle/

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"C_Cpp.default.compileCommands": "./builddir/compile_commands.json",
2+
"C_Cpp.default.compileCommands": "/home/hackerdude/Projects/Kindle/sh_integration/builddir/compile_commands.json",
33
"C_Cpp.default.configurationProvider": "mesonbuild.mesonbuild"
44
}

utils/utils.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ char* asprintf_hd(const char * format, ...)
3838
{
3939
va_list args;
4040
va_start(args, format);
41-
return vasprintf_hd(format, args);
41+
char* result = vasprintf_hd(format, args);
4242
va_end(args);
43+
return result;
4344
}
4445

4546
int hexDecode(const char c)

0 commit comments

Comments
 (0)