diff options
author | tuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-08-05 08:26:07 +0000 |
---|---|---|
committer | tuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-08-05 08:26:07 +0000 |
commit | cae30820aff7f08fdcf92e1ecd6d15dc6cc3c2fa (patch) | |
tree | 20120257778ecdc9f3810a2be58bd3ff1c9ebac7 /capture_sync.c | |
parent | e439e8216b12e1aae452dd50578e25673f8b771b (diff) |
Fix Windows build.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38352 f5534014-38df-0310-8fa8-9805f1628bb7
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); |