instance: add progname as ptr to argv[0]

pull/2006/head
Victor Julien 10 years ago
parent 65a3ff81ef
commit 7ac7f9cd55

@ -2385,6 +2385,7 @@ int main(int argc, char **argv)
SCInstance suri;
SCInstanceInit(&suri);
suri.progname = argv[0];
sc_set_caps = FALSE;

@ -155,6 +155,7 @@ typedef struct SCInstance_ {
struct timeval start_time;
char *log_dir;
const char *progname; /**< pointer to argv[0] */
} SCInstance;

Loading…
Cancel
Save