Skip to content

Instantly share code, notes, and snippets.

@dnaeon
Created April 16, 2011 12:15
Show Gist options
  • Save dnaeon/923075 to your computer and use it in GitHub Desktop.
Save dnaeon/923075 to your computer and use it in GitHub Desktop.
initialize conf to NULL
# git diff upgrade.c
diff --git a/pkg/upgrade.c b/pkg/upgrade.c
index 664db04..3968ffb 100644
--- a/pkg/upgrade.c
+++ b/pkg/upgrade.c
@@ -33,7 +33,7 @@ exec_upgrade(int argc, char **argv)
int64_t oldsize = 0, newsize = 0;
int64_t dlsize = 0;
char size[7];
- properties conf;
+ properties conf = NULL;
(void) argv;
if (argc != 1) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment