mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 18:28:30 +00:00
Fix some static analysis issues
This commit is contained in:
parent
fb54604b31
commit
f147d3dde9
30 changed files with 375 additions and 266 deletions
|
@ -19,6 +19,8 @@
|
|||
#include "libc/calls/calls.h"
|
||||
#include "libc/fmt/conv.h"
|
||||
#include "libc/limits.h"
|
||||
#include "libc/mem/gc.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/str/str.h"
|
||||
|
@ -44,8 +46,8 @@ int main(int argc, char *argv[]) {
|
|||
long count = LONG_MAX;
|
||||
long blocksize = 1;
|
||||
int oflags = O_WRONLY | O_TRUNC | O_CREAT;
|
||||
const char *infile = "/dev/stdin";
|
||||
const char *oufile = "/dev/stdout";
|
||||
char *infile = gc(strdup("/dev/stdin"));
|
||||
char *oufile = gc(strdup("/dev/stdout"));
|
||||
|
||||
prog = argv[0];
|
||||
if (!prog)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue