diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2011-08-05 08:26:07 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2011-08-05 08:26:07 +0000 |
commit | 4e255f139846b40f74fd3b48326a01c037325685 (patch) | |
tree | 20120257778ecdc9f3810a2be58bd3ff1c9ebac7 /capture_sync.c | |
parent | f924ea67ca1bd03c127fe782b4cae641e89cc4a9 (diff) | |
download | wireshark-4e255f139846b40f74fd3b48326a01c037325685.tar.gz |
Fix Windows build.
svn path=/trunk/; revision=38352
Diffstat (limited to 'capture_sync.c')
-rw-r--r-- | capture_sync.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/capture_sync.c b/capture_sync.c index fef2f94ccf..35d4833219 100644 --- a/capture_sync.c +++ b/capture_sync.c @@ -737,7 +737,7 @@ sync_pipe_open_command(const char** argv, int *data_read_fd, /* Couldn't create the message pipe between parent and child. */ *msg = g_strdup_printf("Couldn't create sync pipe: %s", win32strerror(GetLastError())); - for (i = 0; i < argc; i++) { + for (i = 0; argv[i] != NULL; i++) { g_free( (gpointer) argv[i]); } g_free( (gpointer) argv); @@ -752,7 +752,7 @@ sync_pipe_open_command(const char** argv, int *data_read_fd, win32strerror(GetLastError())); CloseHandle(sync_pipe[PIPE_READ]); CloseHandle(sync_pipe[PIPE_WRITE]); - for (i = 0; i < argc; i++) { + for (i = 0; argv[i] != NULL; i++) { g_free( (gpointer) argv[i]); } g_free( (gpointer) argv); @@ -792,7 +792,7 @@ sync_pipe_open_command(const char** argv, int *data_read_fd, CloseHandle(data_pipe[PIPE_WRITE]); CloseHandle(sync_pipe[PIPE_READ]); CloseHandle(sync_pipe[PIPE_WRITE]); - for (i = 0; i < argc; i++) { + for (i = 0; argv[i] != NULL; i++) { g_free( (gpointer) argv[i]); } g_free( (gpointer) argv); |