Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
style(9) change and init some local variables in register.c
Marin Atanasov Nikolov committed 14 years ago
commit a0cab825d7b72feca47d5ebc3d4a57a27f0be2e5
parent c6fe309e62b1f9d518bf425d7996af5bb02988d4
1 file changed +5 -5
modified pkg/register.c
@@ -1,6 +1,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/param.h>
+
#include <sys/utsname.h>

#include <err.h>
#include <stdio.h>
@@ -10,7 +11,6 @@
#include <unistd.h>
#include <stdlib.h>
#include <stdbool.h>
-
#include <sys/utsname.h>
#include <regex.h>

#include "register.h"
@@ -48,11 +48,11 @@ usage_register(void)
int
exec_register(int argc, char **argv)
{
-
	struct pkg *pkg;
-
	struct pkgdb *db;
-
	struct utsname u;
+
	struct pkg *pkg = NULL;
+
	struct pkgdb *db = NULL;
+
	struct utsname u = NULL;

-
	regex_t preg;
+
	regex_t preg = NULL;
	regmatch_t pmatch[2];

	int ch;